Hello gtest users,
I am looking for a smart way to categorise or label my test cases to only run subsets.
For example to label long-running tests (say > 50ms) as 'slow' and exclude those from automatic runs in our continuous integration system.
Using --gtest-filter would be an option, but I want to avoid keeping the continuous integration scripts in sync when new test cases are added.
A rather pragmatic way of doing so would be to add a suffix to each 'slow' test case name and use --gtest-filter to exclude tests ending on '*Slow'.
Is there a better way of doing this?
Cheers,
René