Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to ignore files/namespaces from coverage report

Ravi k July 2, 2018

We have long test cycles, it takes 10 days for a complete batch of testing. While instrumenting the code using clover we included an unwanted project as well. so now on generating the report, we have reduced numbers due to that, Is there any mechanism to ignore a (namespace/set of files) from the report generation? 

rebuilding and running testing again is not an option we have now. Any recommendations to get rid of unwanted project from the report? 

1 answer

0 votes
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 3, 2018

I don't believe it's possible at the point of generating HTML. Clover just gets all data from clover.db and generates coverage reports. 

If you want to exclude code parts from code coverage generation you shall do that at instrument level and simply exclude code from instrumentation. 

Ravi k July 3, 2018

Other reporting tools offer this feature (ex: lcov ).. ! it can be helpful to generate more meaningful reports, every time compiling removing the instrumentation is not an option. 

please assume a scenario wherein we have few java files for which there is 0 coverage, we know its footprint but want to ignore from reports. then again going through the whole process is not feasible. 

Would be of great use if this feature can be provided in future atleast !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events