Quantcast
Channel: opencppcoverage Discussions Rss Feed
Viewing all articles
Browse latest Browse all 235

New Post: Coverage per test case

$
0
0
Hello,

OpenCppCoverage does not know anything about the test cases and so it is not possible to do what you want.
If you use gtest, you could write a small script that call YOUR_UNIT_TESTS.exe --gtest_list_tests to get the list of tests.
For each test case, run the following command:
OpenCppCoverage.exe --source YOUR_SOURCE_FILTER -- YOUR_UNIT_TESTS.exe --gtest_filter=YOUR_TEST_CASE
I hope this will help,

OpenCppCoverage

Viewing all articles
Browse latest Browse all 235

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>