Hi,
I am posting in this thread because I think I need the same feature as the original poster.
I have a test case and I'd like to run it on two implementations.
I could use either parameterized tests (the parameter would be a factory) or type-parameterized tests.
The problem is that one implementation is not complete and fail at some of the tests.
I'd like to be able to disable individual tests in the test case, only for that implementation.
Currently, INSTANTIATE_TYPED_TEST_CASE_P instantiates all the tests of the test case, which leads to failures.
A possible solution would be to split the tests case in several test cases, but it seems to me that it is not very convenient:
- I would need to replicate the fixture class, because it cannot be shared across test cases.
- If I split the test case in two (the tests that pass on both implementations, and the tests that pass only on one), I will need to change the splitting every time the implementation changes and passes new tests.
- If I split the case in multiple cases in order to have only one test per case, I am afraid of the code becoming difficult to understand because I would need to introduce new macros and such to handle the fixture classes replication
Is there any better solution?