jeudi 21 septembre 2017

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+googl-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. Is there anyway to avoid this? Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire