add macro TEST_DISABLED for disabling tests without commenting them out

release/4.3a0
thduynguyen 2014-09-13 01:29:25 -04:00
parent 6d697f2c92
commit 0dcb3e209d
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,12 @@ protected:
testGroup##testName##Instance; \
void testGroup##testName##Test::run (TestResult& result_)
/**
* Use this to disable unwanted tests without commenting them out.
*/
#define TEST_DISABLED(testGroup, testName)\
void testGroup##testName##Test(TestResult& result_, const std::string& name_)
/*
* Convention for tests:
* - "EXPECT" is a test that will not end execution of the series of tests