How to run subset of unit tests in CPPUnit by selecting them at run-time?

后端 未结 3 735
野趣味
野趣味 2021-01-12 13:53

I am using CppUnit as a unit test framework. Is it possible to select a subset of testcases to execute at runtime?

Is there a filtering option provided within CppUn

3条回答
  •  迷失自我
    2021-01-12 14:57

    If you are using the GUI test runner for cppunit you can just check the tests you want to run.

    If you cannot use the GUI test runner, check out this post - it describes an "configurable" way of defining which tests to run based on a xml document (the last post describes more or less the solution I had in the end).

提交回复
热议问题