Zaczynam od testowania dla Grails (wersja 2.2.4).testils grails Tylko klas i zamknięć można używać dla atrybut "wartość" w @ grails.test.mixin.TestFor
Kiedy biegnę: Grails test-app
mam:
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)
mam 21 błędów, po jednym w każdym * Test.groovy plik.
Próbowałem: grails czyścić wcześniej, ale mam ten sam błąd.
Pliki testowe zostały utworzone automatycznie przez Grails podczas tworzenia nowej domeny, kontrolera lub usługi.
Otrzymuję ten sam błąd w 2.3.7 – Guus