Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #3834 (new defect)

Opened 10 years ago

Add option to calculate coverage on a per-unit test suite basis

Reported by: jdsiiro Owned by: wehart
Priority: normal Milestone:
Component: runtests Version:
Keywords: Cc:


Currently, we tabulate coverage statistics as the aggregate coverage from all test suites. This can be problematic, especially for core classes, as simply using a class produces significant "coverage" within the class -- usually without verifying that the class is behaving correctly.

One potential solution would be to create a mapping file from cxxtest test suite to the specific files it is testing. runtests would then need to run each test suite separately, run gcovr to process the code coverage and extract *only* the coverage for the associated source files. Finally, it would aggregate these coverage fragments into a single composite (xml) coverage report.



Add a comment

Modify Ticket

Change Properties
<Author field>
as new

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.