How to have cobertura code coverage information working?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to have cobertura code coverage information working?

Michel Schroeder
Hello all,

I am trying to see the code coverage for ofbiz without success.

I am starting from the last svn trunk version: svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz. Is-it the best starting point?

From the root ofbiz folder I then do:

ant download-cobertura
ant clean-all
ant load-demo
ant run-tests-with-cobertura

Everything seems to work and the ofbiz/runtime/logs/test-results/html/index.html report 804 tests, no errors, no failures.

But when I try ant cobertura-report  I get:

[cobertura-merge] Cobertura: Loaded information on 0 classes.
[cobertura-merge] Cobertura: Loaded information on 0 classes.
[cobertura-merge] Cobertura: Loaded information on 0 classes.
[cobertura-merge] Cobertura: Saved information on 0 classes.
[cobertura-report] Cobertura 1.9.4.1 - GNU GPL License (NO WAR
IGHT file
[cobertura-report] Cobertura: Loaded information on 0 classes.

And the report effectively shows no classes and no coverage.

What is the best way to see this coverage information?

Thanks in advance for your help,

Michel

Reply | Threaded
Open this post in threaded view
|

Re: How to have cobertura code coverage information working?

Michel Schroeder
Hello,

These are my actual conclusions...

The latest version from svn is better than for example 10.04 witch seems to be incomplete (+problem with cobertura version 1.9.3...).

ant test-cobertura 'works' when started from a directory for an application (for example framework/base) and it seems that nothing is included for the top level ofbiz directory.

Actually, I consider that I am not anymore blocked.

(Starting from what is working in the trunk, I will try to adapt it in the 10.04 environment.)

Michel