IntelliJ Grails Integration Tests

I am using IntelliJ 10.0.2 to develop a Grails project. From the Grails view, if I right-click on MyIntegrationTest.groovy and run it individually (by selecting "MyIntegration ..." in the right-click menu), tests pass in it. Tests in this class also pass when I use the "Run Grails target" function and specify "test-app".

However, if I right-click on the tests: integration and select Run, all tests, some of the tests in MyIntegrationTest fail because the dependencies are not entered. The speed with which tests run also indicates that the Spring application context is not being created. Is there a way to run all integration tests (or all integration and unit tests) from IntelliJ without resorting to the Grails command line?

Thanks in advance!

+3
source share
3 answers

, , . grails, IDEA .ipr. , .ipr, Project.ipr, Project.iws, Project.iml Project-grailsPlugins.iml .

IDEA, ( , - ) 4 . IDEA " ". " Grails ", .idea - project. . Porject (Ctrl-Shift-Alt-S) → → → . /, / .

, : : . " Grails: " Run "Grails test: unit", .

+4

Intellij , , Grails: , Grails: . Unit, / spring . / "Run- > Grails: unit / Grails: . Grails IDEA .

+3

, , Idea 10.5.2. .ipr. , "Run MyIntegrationTests"., ". ( , , ). , " : " Grails, " Run "Grails tests: integr...", .

, .

+1

All Articles