IDEA 9 - 95.24 does not run Grails 1.3.0.RC1 unit tests correctly

I've just upgraded a project to Grails 1.3.RC1.

My Grails unit tests are defined as usual like the following:

class ApplicationServiceTests extends GrailsUnitTestCase {
     protected void setUp() {...}
     protected void tearDown() { ...}
     void testLoadApplication () { ... }
}

If I run the tests from the command line with:

> grails test-app unit:

Welcome to Grails 1.3.0.RC1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /Users/mhusby/Applications/grails-1.3.0.RC1


Base Directory: /Users/mhusby/IdeaProjects/BuildTracker
Resolving dependencies...
Dependencies resolved in 1728ms.
Running script /Users/mhusby/Applications/grails-1.3.0.RC1/scripts/TestApp.groovy
Environment set to test
    [mkdir] Created dir: /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/plugin-classes
  [groovyc] Compiling 2 source files to /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/plugin-classes
    [mkdir] Created dir: /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/classes
  [groovyc] Compiling 21 source files to /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/classes
     [copy] Copied 3 empty directories to 1 empty directory under /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/resources
     [copy] Copied 2 empty directories to 2 empty directories under /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/resources
     [copy] Copied 3 empty directories to 2 empty directories under /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/resources
    [mkdir] Created dir: /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports/html
    [mkdir] Created dir: /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports/plain


Starting unit test phase ...
    [mkdir] Created dir: /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/test-classes/unit
  [groovyc] Compiling 6 source files to /Users/mhusby/.grails/1.3.0.RC1/projects/BuildTracker/test-classes/unit


-------------------------------------------------------
Running 9 unit tests...
Running test ApplicationServiceTests...PASSED
Running test org.broadinstitute.prodinfo.releng.builds.ApplicationUnitTests...PASSED
Running test org.broadinstitute.prodinfo.releng.builds.HistoryUnitTests...PASSED
Running test org.broadinstitute.prodinfo.releng.builds.NotificationUnitTests...PASSED
Running test org.broadinstitute.prodinfo.releng.builds.RecipientUnitTests...PASSED
Running test org.broadinstitute.prodinfo.releng.builds.ReleaseUnitTests...PASSED
Tests Completed in 3171ms ...
-------------------------------------------------------
Tests passed: 9
Tests failed: 0
-------------------------------------------------------
[junitreport] Processing /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports/TESTS-TestSuites.xml to /var/folders/oA/oAJwAf832RaOFE+1YtWrb++++TQ/-Tmp-/null1513505413
[junitreport] Loading stylesheet jar:file:/Users/mhusby/.ivy2/cache/org.apache.ant/ant-junit/jars/ant-junit-1.7.1.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 576ms
[junitreport] Deleting: /var/folders/oA/oAJwAf832RaOFE+1YtWrb++++TQ/-Tmp-/null1513505413


Tests PASSED - view reports in /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports


Things are fine, and all my tests pass.
I defined a Grails run configuration for the module with command line "test-app unit:", But when I run it, IDEA steps in some how and fails to run the tests.


/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java -Xmx256M -Dgrails.home=/Users/mhusby/Applications/grails-1.3.0.RC1 -Dbase.dir=/Users/mhusby/IdeaProjects/BuildTracker -Dtools.jar=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/tools.jar -Dgroovy.starter.conf=/Users/mhusby/Applications/grails-1.3.0.RC1/conf/groovy-starter.conf -Dgrails.build.listeners=org.jetbrains.groovy.grails.tests.GrailsIdeaTestListener -Dfile.encoding=MacRoman -classpath /Users/mhusby/Applications/grails-1.3.0.RC1/lib/groovy-all-1.7.1.jar:/Users/mhusby/Applications/grails-1.3.0.RC1/dist/grails-bootstrap-1.3.0.RC1.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /Users/mhusby/Applications/grails-1.3.0.RC1/conf/groovy-starter.conf --classpath /Users/mhusby/Applications/Maia-IU-95.24.app/plugins/GrailsGriffon/lib/groovy_mvc_rt.jar:. test-app unit:
Testing started at 4:17 PM ...
Welcome to Grails 1.3.0.RC1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /Users/mhusby/Applications/grails-1.3.0.RC1
Base Directory: /Users/mhusby/IdeaProjects/BuildTracker
Resolving dependencies...
Dependencies resolved in 1423ms.
Running script /Users/mhusby/Applications/grails-1.3.0.RC1/scripts/TestApp.groovy
Environment set to test
    [mkdir] Created dir: /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports/html
    [mkdir] Created dir: /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports/plain
Starting unit test phase ...
-------------------------------------------------------
Running 9 unit tests...
Running test ApplicationServiceTests...null
Empty test suite.
PASSED
Running test org.broadinstitute.prodinfo.releng.builds.ApplicationUnitTests...null
Empty test suite.
PASSED
Running test org.broadinstitute.prodinfo.releng.builds.HistoryUnitTests...null
Empty test suite.
PASSED
Running test org.broadinstitute.prodinfo.releng.builds.NotificationUnitTests...null
Empty test suite.
PASSED
Running test org.broadinstitute.prodinfo.releng.builds.RecipientUnitTests...null
Empty test suite.
PASSED
Running test org.broadinstitute.prodinfo.releng.builds.ReleaseUnitTests...null
Empty test suite.
PASSED
Tests Completed in 4044ms ...

-------------------------------------------------------
Tests passed: 9
Tests failed: 0
-------------------------------------------------------
[junitreport] Processing /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports/TESTS-TestSuites.xml to /var/folders/oA/oAJwAf832RaOFE+1YtWrb++++TQ/-Tmp-/null1720856639
[junitreport] Loading stylesheet jar:file:/Users/mhusby/.ivy2/cache/org.apache.ant/ant-junit/jars/ant-junit-1.7.1.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 556ms
[junitreport] Deleting: /var/folders/oA/oAJwAf832RaOFE+1YtWrb++++TQ/-Tmp-/null1720856639
Tests PASSED - view reports in /Users/mhusby/IdeaProjects/BuildTracker/target/test-reports



Configuration:


Mac OS X 10.5.8, Java 1.6, Grails 1.3.0.RC1
IDEA 9 - 95.24

0

I observe the opposite behavior. But nevertheless, that's a problem that
should be fixed. I've created a request for it:
http://youtrack.jetbrains.net/issue/IDEA-54145

0

请先登录再写评论。