I'm starting with testing for Grails (version 2.2.4).
When I run: grails test-app
I got:
Error Compilation error compiling [unit] tests: startup failed:
Log:
/myproject/test/unit/app/AutocompleteServiceTests.groovy: 11: Only classes and closures can be used for attribute 'value' in @grails.test.mixin.TestFor
@ line 11, column 10.
@TestFor(AutocompleteService)
/myproject/test/unit/app/CoachControllerTests.groovy: 11: Only classes and closures can be used for attribute 'value' in @grails.test.mixin.TestFor
@ line 11, column 10.
@TestFor(CoachController)
I have 21 errors, one per each *Test.groovy file.
I tried: grails clean before, but I have the same error.
The Test files was created autmatically by Grails when I create new Domain, Controller or Service.