// declare a test runner, fill it with our registered tests and run them
CppUnit::MfcUi::TestRunner runner;
runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() );
runner.run();
return TRUE;
}
只要定义一个test的实例,然后注册所有用例,在跑case。
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/