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
code-coverage 2.0.3-1 not producing html output with grails 2.3.10 #30
Comments
Can you put your example in its own repo and give me a link to it? |
Same problem for grails 2.3.8... |
@beckje01 here is a link to the repo. Thanks! https://github.com/JarredOlson/GrailsCoverageIssue |
Same problem in grails 2.2.1 |
I've noticed the same thing starting in grails 2.3.8. Coverage in my test app worked fine in 2.3.7. Here is the output I'm seeing under 2.3.8:
|
Is there any advance in this issue? What can we do? |
Digging out a bit it seems the problem could be when executing the Java task to instrument the classes, which produces this error:
I couldn't figure out why yet :( |
I don't know how to enable more debugging. How can I do that? Seeing your error make me wonder if latest version of Grails removed some dependency code-coverage depends upon. I'm pretty lost here. 😟 |
I'm having the same issue in 2.4.2. I noticed that running version 1.2.7 of the plugin produces the HTML but causes my tests to fail. If I swap to 2.0.3-1 then my tests pass but no html report. One of the few differences I have seen is this:
In 1.2.7 I don't see this output but in 2.0.3-1 I get it just before the tests run. |
I logged the classpath on two test projects, on grails 2.3.7 and 2.3.8 and it seems that the ant jar is gone on the 2.3.8. On a test project this seems to do the trick: |
Thanks to the help from @marcos-carceles and one other change for 2.3.10 the latest version on master seems to be working correctly for 2.3.10 and 2.4.3. @stevegood would you be willing to test the latest code in master with your project? If I can have a few people confirm the fix I will release on Sunday. |
I've done some testing on my own apps,
I really don't understand how to get more debugging information. |
@genuinefafa what command are you running right now? |
Also if you could uncomment https://github.com/beckje01/grails-code-coverage/blob/master/scripts/_Events.groovy#L252 and run that will give lots of details but it would be best to email me that output. I tried with the test app https://github.com/JarredOlson/GrailsCoverageIssue bumped up to 2.3.11 and didn't get the issue. |
I did I'm using I just double check it. @beckje01 what email? my skype is the same as my user ps: I'm doing those modifications now, i'll be back 🎱 |
Tested and confirmed working. |
I confirmed that everything is working in 2.4.2 using the content of master branch. |
@stevegood Great thanks it should be live in the plugin portal now |
Works for me too in grails 2.3.8. Thanks a lot ! 2014-08-16 22:33 GMT-04:00 Jeff Beck notifications@github.com:
|
I am using grails 2.4.3 and ':code-coverage:2.0.3-2' When i run test-app -coverage -xml in local machine, it looks fine. When i run test-coverage in jeakins(cobertura 1.9.5, the grails.project.fork was commented out ) , i got the following logs [java] [cobertura-instrument] Cobertura 2.0.3 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file |
I attempted to upgrade an existing grails 2.3.10 project to use code-coverage 2.0.3-1. When I ran
grails test-app -coverage
nothing appeared when I viewed the coverage report at /target/test-reports/cobetura/index.html. I created a fresh grails 2.3.10 project and added 1 controller and the coverage plugin. Execute the same command as above and the same result happened. In both cases I removed the forked execution as well since I had read elsewhere that it caused issues. Adding -xml to the command seems to generate the coverage.xml file still but nothing shows in index.html. I can't upload a zip of my sample project so here is some git output for what I did on top of a clean grails 2.3.10 created app:--- a/grails-app/conf/BuildConfig.groovy
+++ b/grails-app/conf/BuildConfig.groovy
@@ -12,7 +12,7 @@ grails.project.fork = [
// compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
// configure settings for the run-app JVM
run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
// configure settings for the run-war JVM
Adding coverage plugin
--- a/grails-app/conf/BuildConfig.groovy
+++ b/grails-app/conf/BuildConfig.groovy
@@ -66,6 +66,7 @@ grails.project.dependency.resolution = {
runtime ":database-migration:1.4.0"
runtime ":jquery:1.11.1"
runtime ":resources:1.2.7"
// Uncomment these (or add new ones) to enable additional resources capabilities
//runtime ":zipped-resources:1.0.1"
//runtime ":cached-resources:1.1"
Adding simple controller
+++ b/grails-app/controllers/sample/PersonController.groovy
+package sample
+
+import java.util.Random
+
+class PersonController {
+
+}
The text was updated successfully, but these errors were encountered: