marius_plavan
11 years agoNew Contributor
Excluding certain source paths from (Test) code coverage runs
Hi all,
I am using AQTime 8.x (deployed on the continuous integration server) for detecting & improving test coverage for several modules.
So AQTime starts the test application and provides several XML files as output.
One of the XML output files contains a list with source files and the number of lines covered / uncovered. This file contains all unit-test source files as well (available, in my case, under a /test/...*.cpp directory).
So what I would like to achieve is telling AQTime to not include my /test/* files in the analisys, as the goal would be to measure the code coverage of the actual module.
During my quick search through the command line reference, I was unable to find something for achieving this.
Would there maybe still be a way to exclude certain paths using the AQTime command line?
Kind regards
Marius
I am using AQTime 8.x (deployed on the continuous integration server) for detecting & improving test coverage for several modules.
So AQTime starts the test application and provides several XML files as output.
One of the XML output files contains a list with source files and the number of lines covered / uncovered. This file contains all unit-test source files as well (available, in my case, under a /test/...*.cpp directory).
So what I would like to achieve is telling AQTime to not include my /test/* files in the analisys, as the goal would be to measure the code coverage of the actual module.
During my quick search through the command line reference, I was unable to find something for achieving this.
Would there maybe still be a way to exclude certain paths using the AQTime command line?
Kind regards
Marius
- Hi Marius,
You should modify the AQtime project file and include \test\*.cpp files to the excluding area (http://support.smartbear.com/viewarticle/43495/). To ease the selection of the files to be included into the area you can sort them accordingly in the Modules pane.