1

I am having some problems with my coverage report. According to this question It seems to be the optimizations groovy branches.

The answer says that I should drop this jar in my lib directory and run "test-app -coverage". But it is still not working. I think its because I am using grails 2.3.x and groovy 2.x instead of groovy 1.8 (the solution is very old)

How do I use this jar? or the solution is diferent for new groovy compilers?

Some examples of my problem with the coverage report

enter image description here

and

enter image description here

I am using oracle java 7 build 24.51-b03 in linux

Community
  • 1
  • 1
Alejandro Vera
  • 377
  • 2
  • 12
  • 1
    did you ensure you also did a clean before? The global transformation you have to build from the link you mentioned needs to be precompiled and can only work when compiling the target Groovy code. – blackdrag Jul 09 '14 at 12:49
  • no luck so far. What I did was the following – Alejandro Vera Jul 09 '14 at 14:08
  • (sorry, previous comment was incomplete). I have some luck with your comment @blackdrag. What I did was the following. drop .jar in the `lib/` directory. `grails clean` and `grails test-app -unit -coverage`. The examples I uploaded are fixed, but I have lines like this ` render ''` that are in red. Show I open a new question about this behavior or modify the current one? – Alejandro Vera Jul 09 '14 at 14:17
  • I guess a new one would be best, and close/remove this one. but I am unsure I will be able to answer the new question... maybe one of the real Grails people will be able to. It should not be related to optimizations – blackdrag Jul 09 '14 at 14:40
  • thanks. By grails people you mean to ask in grails forums? thanks again @blackdrag – Alejandro Vera Jul 09 '14 at 17:56
  • by Grails I mean to use the Grails tag ;) Well you did for this one too already – blackdrag Jul 10 '14 at 13:30

1 Answers1

0

I am closing this question becouse the solution was clean/compile and not other procedure.

The only problem so far with this solution is that there are still redlines in my reports that do not have conditional branches. But I will open a new question

Alejandro Vera
  • 377
  • 2
  • 12