-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2.2.0.M1, Grails 4.1.0.M1: Integration test not working #65
Comments
Could you please verify this with Grails 4.1.0.M2? |
Apparently still there in 5.0.0.M1:
grails test-app BlankIntegrationTestSpec --stacktrace FAILURE: Build failed with an exception.
|
Would love to have an update on this issue if at all possible.
Is there a workaround for this issue? |
I am unable to replicate this using Grails 5 RC2, please check sample application here |
It appears to have been an issue with my test setup. This changed resolved for me: diff --git a/build.gradle b/build.gradle
index c0f42c745..43970ffdf 100644
--- a/build.gradle
+++ b/build.gradle
@@ -214,7 +214,7 @@ bootRun {
systemProperties System.getProperties()
}
-test {
+tasks.withType(Test) {
useJUnitPlatform()
} Thanks @puneetbehl , that was very helpful |
Task List
Steps to Reproduce
Create a project: grails create-app blankProject
The project is created, go to /blankProject
Create a integration test: grails create-integration-test blankIntegrationTest
As default, this test is created:
Try to run the new test: grails test-app -integration
The result tells all tests passed. But actually the test was not executed.
To see what really happened, execute the specific test:
grails test-app BlankIntegrationTestSpec --stacktrace
Expected Behaviour
The test should execute and fail.
Actual Behaviour
The test do not execute, due to the error below:
Environment Information
Example Application
https://github.com/tessarini/grailsIssueWithSpock
The text was updated successfully, but these errors were encountered: