How to specify multiple exclusion filters in --gtest_filter?

前端 未结 2 639
梦谈多话
梦谈多话 2021-01-31 23:53

The question is about google-test framework. I want to run all tests excluding some according to multiple exclusion filters, like: --gtest_filter=-ABC.*:-BCD.*

2条回答
  •  轮回少年
    2021-02-01 00:42

    You group the patterns in the form --gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS]

    So in this case, you want --gtest_filter=-ABC.*:BCD.*

提交回复
热议问题