Quantcast

Running tests twice with different jar file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Running tests twice with different jar file

redcoat
I've had some conversations on the Groovy list about inaccurate branch coverage using Cobertura (you can read it here:  http://groovy.329449.n5.nabble.com/Branch-coverage-issues-td5686725.html)

A solution provided was to run the tests with a jar file on the classpath, which effectively turns the dynamic branching optimizations off.  Obviously, I'd like to still run the tests as they will be executed in production also ie without this jar file.

How could I accomplish this in Grails?  I'd like two targets - one that runs test-app without the jar, and one that runs test-app -coverage with the jar.

Thoughts?


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Running tests twice with different jar file

Mário Melo
I'm also having this problem and this may actually be a good solution.

Any thoughts?
Mário Melo
Technology Manager - Facta TI
mario - at - factati dotcom
factati.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Running tests twice with different jar file

Nathan Wells
Sounds like you want to add a script:


But I'm not sure how you would add a jar to the classpath using Gant...

Nathan Wells


On Wed, Jul 11, 2012 at 3:30 PM, Mário Melo <[hidden email]> wrote:
I'm also having this problem and this may actually be a good solution.

Any thoughts?

-----
Mário Melo
Technology Manager - Facta TI
mario - at - factati dotcom
factati.com


--
View this message in context: http://grails.1312388.n4.nabble.com/Running-tests-twice-with-different-jar-file-tp4618168p4631435.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Loading...