allow temporary disabling of tests using "DISABLED_" prefix?
bxparks opened this issue · 1 comments
bxparks commented
Google Test allows temporarily disabling a test if the name is prefixed with "DISABLED_". I've occasionally found myself wanting this feature while debugging existing unit tests. The current workarounds are:
- use
TestRunner::exclude()
- use
#if 0
/#endif
pairs - use
/* */
comment lines
bxparks commented
Since the 'name' of a test case is used to identify the object instance (e.g. externTest()
), I cannot think of a way to implement this without using an indirection layer, i.e. a proxy around an instance of a Test object. But creating an indirection layer seems to be a lot of complexity for not much gain.
Marking as "Not feasible" or "Won't fix".