This repository was archived by the owner on Apr 8, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 21
V2.2.0.M1, Grails 4.1.0.M1: Integration test not working #65
Labels
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 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: