Re: Code coverage report for multi module maven project reports zero in some modules

2012-07-03 Thread kfmohamm
Thanks Thomas, I tried what you suggested and now we have the code coverage report for all our modules. Thanks Khurram On 1 July 2012 03:51, kfmoh...@uci.edu wrote: Yes, I have moduleA, moduleB, moduleC, moduleD, moduleE and module F. I run JUnit tests from module F. This is not the way

RE: Code coverage report for multi module maven project reports zero in some modules

2012-07-01 Thread Tim Wu T
List Subject: Re: Code coverage report for multi module maven project reports zero in some modules Yes, I have moduleA, moduleB, moduleC, moduleD, moduleE and module F. I run JUnit tests from module F. The report in the moduleF/target... directory has the required coverage information. However

Re: Code coverage report for multi module maven project reports zero in some modules

2012-07-01 Thread Aliaksei Lahachou
cobuertural plugin, which will help me generate a whole report, not only include some packages :) Br, Tim -Original Message- From: kfmoh...@uci.edu [mailto:kfmoh...@uci.edu] Sent: Sunday, July 01, 2012 9:51 AM To: Maven Users List Subject: Re: Code coverage report for multi module

Re: Code coverage report for multi module maven project reports zero in some modules

2012-07-01 Thread Thomas Sundberg
On 1 July 2012 03:51, kfmoh...@uci.edu wrote: Yes, I have moduleA, moduleB, moduleC, moduleD, moduleE and module F. I run JUnit tests from module F. This is not the way the Cobertura plugin expects you to do stuff. I have solved this scenario with a mix if Maven and And. If you are interested,

Re: Code coverage report for multi module maven project reports zero in some modules

2012-06-30 Thread Aliaksei Lahachou
Hi! cobertura:cobertura executes it's own lifecycle: instruments the classes, instrumented classes are saved to target/generated-classes/cobertura, and executes unit tests. Instrumented classes dump coverage data to target/conbertura/cobertura.ser. There are two things to understand: 1. When

Re: Code coverage report for multi module maven project reports zero in some modules

2012-06-30 Thread Patrick Mohr
On Sat, Jun 30, 2012 at 12:18 AM, Aliaksei Lahachou aliaksei.lahac...@gmail.com wrote: Hi! cobertura:cobertura executes it's own lifecycle: instruments the classes, instrumented classes are saved to target/generated-classes/cobertura, and executes unit tests. Instrumented classes dump

Re: Code coverage report for multi module maven project reports zero in some modules

2012-06-30 Thread Aliaksei Lahachou
Aggregated cobertura report will execute cobertura on each module and then merge the single reports. It will not help if, for example, you have tests in module A and want to have coverage of module B. On Sat, Jun 30, 2012 at 10:46 AM, Patrick Mohr kc7...@gmail.com wrote: On Sat, Jun 30, 2012

Re: Code coverage report for multi module maven project reports zero in some modules

2012-06-30 Thread kfmohamm
Yes, I have moduleA, moduleB, moduleC, moduleD, moduleE and module F. I run JUnit tests from module F. The report in the moduleF/target... directory has the required coverage information. However, the coverage report in the other modules reports line and code coverage as zero. I did try to use