Modifying --gtest_filter argument
已回答
From Clion I can select which tests to run. But I cannot specify that I want to run all test except one test, or test case. I can add the DISABLED_ for each test, but I would rather use the --gtest_filter option that let's you run test selectvely (as well as exclude).
Since Clion uses --gtest_filter=* on the command line, then I cannot add an argument --gtest_filter=-DisabledTest because google test cannot take multiple --gtest_filter arguments
Any ideas on how to resolve this?
请先登录再写评论。
I have the same issue. Please advise how to get clion to remove "--gtest_filter=*" so I can specify the filter as a program argument.
Seems like it is not possible to remove the hardcoded arguments (e.g. `--gtest-filter=*`). That's the reason why I cannot use CLion for running my tests: it just doesn't work.
Hi all!
The Pattern control of a Google Test run/debug configuration uses gtest-filter under the hood. For example, if you specify
Abs*as shown above, CLion will add the--gtest_filter=Abs*flag.