CTEST+googl-test: Is there anyway to avoid CTEST run global test environment set-up and per-test-case set-up for each case in a case list?
I have a problem when using CTEST+google-test with cmake gtest_add_tests(): CTEST will run global test environment set-up, per-test-case set-up, per-test SetUp for each case, the behavior is the same as using --gtest_filter for each case. This would be OK when run single case , but when we run a case list with CTEST, that would NOT be the real behavior we want, and the behavior is totally different with google-test. Google-test will run global test environment set-up only once, and per-test-case set-up only once for each case list. Is there anyway to avoid this? Thanks in advance!
cmake version: any version support gtest_add_tests google-test version: latest from github