Clover Grails Plugin fails when tests are launched from IDEA

XMLWordPrintable

    • Severity 2 - Major

      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.

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

              Created:
              Updated:
              Resolved: