berkoo / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add macro DISABLED_TEST_F for test disabling #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently to disable test user should add "DISABLED_" to the test name. It
is not safe. Compiler cannot check it on compile time that you have written
"DISABLED_" correctly.

To fix it add new macro DISABLED_TEST_F.

Thanks.

Original issue reported on code.google.com by Dmitriy....@gmail.com on 27 May 2010 at 9:30

GoogleCodeExporter commented 9 years ago
We have a number of macros for defining a test (in addition to TEST and TEST_F, 
there
are also macros for type-parameterized and value-parameterized tests).  This 
change
will double the number of test-defining macros.  I believe the benefit of the 
change
isn't significant enough to just the complexity.

BTW, please send feature requests to the mailing list instead of the issue 
tracker. 
Thanks.

Original comment by w...@google.com on 28 May 2010 at 5:11