From 0dcb3e209d01dbe21cf09550c59a27dfb24e4b1e Mon Sep 17 00:00:00 2001 From: thduynguyen Date: Sat, 13 Sep 2014 01:29:25 -0400 Subject: [PATCH] add macro TEST_DISABLED for disabling tests without commenting them out --- CppUnitLite/Test.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CppUnitLite/Test.h b/CppUnitLite/Test.h index 3ea6a6318..ff1f1b692 100644 --- a/CppUnitLite/Test.h +++ b/CppUnitLite/Test.h @@ -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