How to exclude package coverage and file coverage from the final report.

View: New views
1 Messages — Rating Filter:   Alert me  

How to exclude package coverage and file coverage from the final report.

by daniel.mfreitas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi folks,

I have cobertura setup with Hudson and I can see the coverage graphs no problem. But right now the graph shows coverage for Classes, Conditionals, Files, Lines, Methods and Packages, which leaves the graph too poluted. I would like to remove reports for packages and files and leave only the rest (Classes, Conditionals, Lines and Methods).

This is my maven configuration:

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <formats>
                        <format>xml</format>
                        <format>html</format>
                    </formats>
                    <check>
                        <haltOnFailure>false</haltOnFailure>
                        <regexes>
                            <regex>
                                <pattern>com.googlecode.*</pattern>
                                <branchRate>90</branchRate>
                                <lineRate>90</lineRate>
                            </regex>
                        </regexes>
                    </check>
                    <instrumentation>
                        <includes>
                            <include>com/googlecode/**/*.class</include>
                        </includes>
                        <excludes>
                            <exclude>**/*Exception.class</exclude>
                        </excludes>
                    </instrumentation>
                </configuration>
            </plugin>

Regards,

Daniel Freitas