???????????cppunit??????????
???????????? ???????[ 2016/1/19 13:34:43 ] ??????????????? ???????
??????????????????????????????????????????????????????????ο???
????1.fatal error C1083: ????????????:“Point.h”: No such file or directory?????????????????£?????????????????λ????????????? ->C/C++ ->????->????????????????????λ?÷?????
????2. error C2011: “Point”:“class”????????壻????Point.h??????????????ú??壬???????в?????????Point.h????????????Point.h????м??????#ifndef POINT_H #define POINT_H #endif???ɡ?
??????????????????
????1.class testpoint :public CppUnit::TestFixture ?????TestFixture????testpoint??
????2.CPPUNIT_TEST_SUITE(testpoint);??testpoint?????????
????CPPUNIT_TEST??testget??;testget????????
????3.CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(testpoint?? "alltest");???????testpoint????alltest
????4.main??????????????????????
????CppUnit::TestResult r;
????CppUnit::TestResultCollector rc;
????r.addListener(&rc); // ???乲????????????????????
????CppUnit::TestRunner runner; // ??????????
????runner.addTest(CppUnit::TestFactoryRegistry::getRegistry("alltest").makeTest());
????runner.run(r); // ???в???
????CppUnit::TextOutputter o(&rc?? std::cout);
????o.write(); // ????????
????system("pause");//?????????exe???????к??????????
????return rc.wasSuccessful() ? 0 : -1;//????????????????0??
?????????????????д??????????????????????????Щ????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11