Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1167

Grails Clover Plugin does not intercept 'testc' compiler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.1.6
    • Fix Version/s: 3.1.8
    • Component/s: Grails Plugin, Groovy
    • Labels:
      None

      Description

      Grails 2.x has introduced a new compiler for building unit tests (from test/unit directory). The 'testc' task is the org.codehaus.groovy.grails.test.compiler.GrailsTestCompiler Build log looks like this:

      |Compiling 1 source files
          ...
          [testc] ... \test\unit\clover\test\UnitTests.groovy
      
      |Compiling 1 source files
         ...
        [groovyc] ... \test\integration\IntegrationServiceTests.groovy
      

      Clover does not intercept this compiler call (it supports Groovyc, Grailsc, GrailsCompiler). As a consequence unit tests are not instrumented and not included in coverage.

        Attachments

          Activity

            People

            Assignee:
            mparfianowicz Marek Parfianowicz
            Reporter:
            mparfianowicz Marek Parfianowicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: