本文整理汇总了C++中TestRunner::isTestEnabled方法的典型用法代码示例。如果您正苦于以下问题:C++ TestRunner::isTestEnabled方法的具体用法?C++ TestRunner::isTestEnabled怎么用?C++ TestRunner::isTestEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestRunner
的用法示例。
在下文中一共展示了TestRunner::isTestEnabled方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: run
static bool run(TestRunner& tr)
{
if(tr.isTestEnabled("pong"))
{
runPingTest(tr);
}
return true;
}
示例2: run
static bool run(TestRunner& tr)
{
if(tr.isTestEnabled("fixme"))
{
// load and start node
Node* node = Tester::loadNode(tr, "test-services-customcatalog");
assertNoException(
node->start());
Config cfg = tr.getApp()->getConfig();
sTestDataDir = cfg["test"]["dataPath"]->getString();
//config["node"]["modulePath"] = append BPE_MODULES_DIRECTORY;
//config["bitmunk.catalog.CustomCatalog"]["uploadListings"] = false;
// run tests
customCatalogTests(*node, tr);
// stop and unload node
node->stop();
Tester::unloadNode(tr);
}
if(tr.isTestEnabled("fixme"))
{
// load and start node
Node* node = Tester::loadNode(tr, "test-services-customcatalog");
assertNoException(
node->start());
Config cfg = tr.getApp()->getConfig();
sTestDataDir = cfg["test"]["dataPath"]->getString();
//config["node"]["modulePath"] = BPE_MODULES_DIRECTORY;
//config["bitmunk.catalog.CustomCatalog"]["uploadListings"] = true;
// run tests
interactiveCustomCatalogTests(*node, tr);
// stop and unload node
node->stop();
Tester::unloadNode(tr);
}
return true;
};
示例3: run
static bool run(TestRunner& tr)
{
if(tr.isTestEnabled("ws-server"))
{
runWebServerTest(tr);
}
return true;
}
示例4: run
static bool run(TestRunner& tr)
{
if(tr.isTestEnabled("fiber-yield"))
{
runFiberYieldTest(tr);
}
return true;
}
示例5: run
static bool run(TestRunner& tr)
{
if(tr.isDefaultEnabled())
{
runHttpHeaderTest(tr);
runHttpNormalizePath(tr);
runCookieTest(tr);
}
if(tr.isTestEnabled("http-server"))
{
runHttpServerTest(tr);
}
if(tr.isTestEnabled("http-pong"))
{
runHttpPongTest(tr);
}
if(tr.isTestEnabled("http-client-get"))
{
runHttpClientGetTest(tr);
}
if(tr.isTestEnabled("http-client-redirect-loop"))
{
runHttpClientRedirectLoopTest(tr);
}
if(tr.isTestEnabled("http-client-post"))
{
runHttpClientPostTest(tr);
}
if(tr.isTestEnabled("ping"))
{
runPingTest(tr);
}
return true;
}
示例6: run
static bool run(TestRunner& tr)
{
if(tr.isTestEnabled("dyno-perf"))
{
Config cfg = tr.getApp()->getConfig();
// number of loops for each test
int loops = cfg->hasMember("loops") ? cfg["loops"]->getInt32() : 1;
for(int i = 0; i < loops; ++i)
{
runDynoIterTest(tr);
}
}
return true;
}
示例7: run
static bool run(TestRunner& tr)
{
if(tr.isTestEnabled("login-required"))
{
// load bitmunk node
Node* node = Tester::loadNode(tr);
assertNoException(
node->start());
// run config test
runConfigTest(*node, tr);
// unload bitmunk node
node->stop();
Tester::unloadNode(tr);
assertNoExceptionSet();
}
return true;
}
示例8: run
static bool run(TestRunner& tr)
{
if(tr.isTestEnabled("fixme"))
{
// load and start node
Node* node = Tester::loadNode(tr/*, "test-node-services"*/);
assertNoException(
node->start());
//cout << "You may need to remove testuser5.profile from /tmp/ to "
// "run the password update test." << endl;
// login the devuser
//node.login("devuser", "password");
//node.login("testuser5", "password");
assertNoExceptionSet();
// run tests
//mediaGetTest(node, tr);
//userGetTest(node, tr);
//userAddTest(node, tr);
//userUpdateTest(node, tr);
//accountGetTest(node, tr);
//contributorGetTest(node, tr);
//permissionGetTest(node, tr);
//reviewGetTest(node, tr);
//acquireLicenseTest(node, tr);
// performance tests
//accountGetPerfTest(node, tr);
// stop and unload node
node->stop();
Tester::unloadNode(tr);
}
if(tr.isTestEnabled("fixme"))
{
// load and start node
Node* node = Tester::loadNode(tr/*, "test-node-services"*/);
assertNoException(
node->start());
// login the devuser
//node.login("devuser", "password");
//node.login("testuser5", "password");
assertNoExceptionSet();
Config cfg = tr.getApp()->getConfig();
const char* test = cfg["monarch.test.Tester"]["test"]->getString();
bool all = (strcmp(test, "all") == 0);
if(all || (strcmp(test, "ping") == 0))
{
pingPerfTest(*node, tr);
}
// stop and unload node
node->stop();
Tester::unloadNode(tr);
}
return true;
};