-
Notifications
You must be signed in to change notification settings - Fork 950
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
Grails 6 can't use classes from test in integration-test #13107
Grails 6 can't use classes from test in integration-test #13107
Comments
See the project at https://github.com/jeffbrown/integrationtraitdemo. src/main/groovy/com/demo/SomeTrait.groovy
src/integration-test/groovy/com/demo/MySpec.groovy
Does that build and run in your environment? Thank you for your feedback! |
FYI... At jeffscottbrown/integrationtraitdemo@50fb864 I renamed the trait to use the name specified in the initial report above in case there was something going on related to the name "*Helper". |
I see now that the report calls for putting the trait in |
Yes, having the trait in src/main is fine. The regression is only on classes in src/test. This trait in particular is not something i'd want to end up in the production jar so it wouldn't make sense for us to put it in src/main. |
@puneetbehl Can you provide any estimate on when there might be a 6.0.1 (or 6.1.0) grails release, or at the very least a release of the grails-gradle-plugin so that this fix can be used? |
Expected Behavior
I have a trait in src/test that contains some helper methods that have been useful in classes in src/integration-test.
In previous versions of Grails I could implement the trait on my integration-test Spec classes.
Actual Behaviour
compileIntegrationTestGroovy failed compilation as it can't resolve the class from src/test
Steps To Reproduce
Environment Information
Example Application
No response
Version
6.0.0
The text was updated successfully, but these errors were encountered: