I am using history files to verify our code coverage does not decrease with releases. I am creating reports and history files through maven commands clover:clover and clover:save-history. After creating a history file, I execute a build with the same version of code. I get the same code coverage as the initial run, but the clover:check command indicates that we have less coverage than the history file. The history file shows indicates a higher code coverage percentage.
Has anyone encountered this?
After running several tests, I have discovered the difference in the historical coverage and the current report is centered around whether you are including the the test source code in the coverage metrics. The current report breaks the coverage down into two sections, one for the application source code and one for the test source code. The historical coverage includes both the application source code and the test source code into a single coverage metric. When running the clover:check goal, the plugin compares the application source code coverage in the current report to the historical report that contains both the application and test source code. The historical coverage is higher because the test source coverage is close to 100% which increases the overall coverage metric. The historical coverage and the current report coverage are similar if the includeTestSourceRoots is set to false.
Has anyone else seen this or have a suggestion on configurations in the report descriptor that will keep from using the test source code in the history reports?
Hi, Atlassian Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trel...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events