-
Notifications
You must be signed in to change notification settings - Fork 26
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
Plugin not working with forked execution in Grails 2.3 #11
Comments
The workaround works well on my local machine. It will however cause my test to crash when running on Jenkins because of classloading problems (in my case a JUnit class cannot be found). |
I have also noticed that you will not get coverage from functional tests unless you change the fork |
There is not currently plans for supporting forked mode, of anyone is interested in adding support a pull request is very welcome. |
@beckje01 I wouldn't mind diving into this, however I really have no idea what would need changed. Can you provide a general description of what will need changed? |
I really don't know where to start but with grails 3 this plugin is not needed. So it may not be worth the effort. |
The code coverage report doesn't seem to get generated when using the new forked execution introduced in Grails 2.3.
To reproduce the issue (tried on both windows and linux):
grails test-app -coverage
As a workaround, you can turn off the forked execution and the code-coverage report is created.
The default Grails 2.3.0 settings in
conf/BuildConfig.groovy
for forking a new process:Then the console output includes:
If you change the setting to
Then the console output is as follows - and the reports are generated:
The text was updated successfully, but these errors were encountered: