I am new to grails and trying to run existing integration tests for a specific class (using grails 3.0.11). (I do not want to run ALL test classes, only one)
- Is it possible to do this for integration tests, or can only those Unit tests be executed?
- If so, can anyone suggest how this can be done?
The testing class is as follows
@TestFor(ClassToBeTested)
@Mock([])
class ClassToBeTestedSpec extends Specification {
...
}
I tried the following after viewing the posts here,
$ grails test-app -integration ClassToBeTested
But I get below errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':integrationTest'.
> No tests found for given includes: [ClassToBeTested]
Thanks.
source
share