Grails

Patch: Improve Cobertura report to include src/groovy/* and exclude test/*

Details

  • Type: Test Test
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.0.2
  • Component/s: ContinuousBuild, Testing
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

The attached patch improves the Cobertura report in two ways:

  • Include files in src/groovy in the Cobertura report. Without this patch, the Cobertura report cannot find the source code for those classes (e.g., org.codehaus.groovy.grails.plugins.converters.codecs.JSONCodec).
  • Exclude the test classes from the coverage report. (Including the test classes in the coverage report adversely affects the the coverage percentages, and as a general rule, one is typically only interested in measuring coverage for production code, not test cases.)

Activity

Hide
Graeme Rocher added a comment -

Thanks for the patch!

Show
Graeme Rocher added a comment - Thanks for the patch!
Hide
Graeme Rocher added a comment -

Bulk closing bunch of resolved issues

Show
Graeme Rocher added a comment - Bulk closing bunch of resolved issues

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: