I\'ve been running my Grails unit tests by typing grails test-app :unit
, which runs all unit tests. Is there a way to specify a single test?
Edit:<
Given a test class foo.BarTests you can run just the tests in that class using the following command:
grails test-app :unit foo.Bar
Or run a single test method within that class using:
grails test-app :unit foo.Bar.testMethod
Note that you do not include the word "Tests" when specifying the name of test class.