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

Clover Grails Plugin fails when tests are launched from IDEA

    XMLWordPrintable

Details

    • Severity 2 - Major

    Description

      Steps to reproduce:

      • import Grails-based project into IntelliJ IDEA
      • add Clover Grails plugin to the project
      • run forked tests from IDEA

      Build fails with an error like:

      | Error Error running forked test-app: No such property: testNames for class: _Events (Use --stacktrace to see the full trace)
      | Error Forked Grails VM exited with error
      

      Workaround:

      • disable forked test execution in IDEA

      Probable cause:

      IDEA does not call "grails test-app" but executes the GrailsScriptRunner, e.g.:

      java -cp ... org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner
      

      The most probably this runner does not import the _GrailsTest.groovy, which contains a definition of the testNames property.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: