本文整理汇总了C++中TestRunner::runTests方法的典型用法代码示例。如果您正苦于以下问题:C++ TestRunner::runTests方法的具体用法?C++ TestRunner::runTests怎么用?C++ TestRunner::runTests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestRunner
的用法示例。
在下文中一共展示了TestRunner::runTests方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main() {
TestRunner run;
run.addTest(EvalNodeTest::isNumberTest, "isNumberTest");
run.runTests();
return 0;
}
示例2: main
int main(int argc, const char* const argv[])
{
std::vector<TestCase*> tests;
createTests(tests);
TestRunner runner;
runner.runTests(tests);
int errCount(runner.getFailed());
deleteTests(tests);
return errCount;
}
示例3: main
int main()
{
ConnectionType type;
QString address = "127.0.0.1::5025";
#ifdef Q_OS_WIN
type = ConnectionType::VisaTcpSocketConnection;
#else
type = ConnectionType::TcpSocketConnection;
#endif
TestRunner testRunner;
// testRunner.addTest(new UnitsTest);
testRunner.addTest(new VnaChannelTest (type, address));
// testRunner.addTest(new VnaArbitraryFrequencyTest(type, address));
// testRunner.addTest(new VnaIntermodTest (type, address));
// testRunner.addTest(new VnaSweepTest (type, address));
// testRunner.addTest(new VnaCalibrateTest (type, address));
// testRunner.addTest(new VnaPauseSweepsTest (type, address));
// testRunner.addTest(new VnaTraceTest (type, address));
qDebug() << "Global result: " << (testRunner.runTests() ? "PASS" : "FAIL");
return 0;
}
示例4: runTests
void runTests() {
TestRunner runner;
// Bayesian Node Tests
runner.runTest("Can Sample Node", canSample);
runner.runTest("Can Average Node Value", canAverage);
runner.runTest("Can Marginalize Node", canMarginalizeNode);
runner.runTest("Can obtain Markov Blanket of Node", canMarkovBlanket);
// Bayesian Network Tests
runner.runTest("Can Sample Network", canSampleNetwork);
runner.runTest("Can Marginalize Network", canMarginalizeNetwork);
ostringstream oss;
for (int i = 100; i < 1000; i += 100) {
oss << "Marginalization of Bayesian Network of Size (" << i << ")";
for (int j = 8; j <= 64; j *= 2)
runner.runTest(oss.str(), bind(run, i, j));
oss.str("");
}
runner.runTests();
}