Using AppFuse 2.0-RC1 modular struts 2 archetype.  But this problem occurs in
previous archetypes too, for me.  In the core module the command:

mvn clean site

succeeds and the following is logged:

Tests run: 45, Failures: 0, Errors: 0, Skipped: 0

[INFO] Preparing surefire-report:report-only
[INFO] No goals needed for project - skipping
[INFO] Preparing cobertura:cobertura
[INFO] [aspectj:compile {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cobertura:instrument]
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Instrumenting 40 classes to
C:\dev\af-modular\core\target\generated-classes\cobertura
Cobertura: Saved information on 38 classes.
Instrument time: 203ms

[INFO] Instrumentation was successful.

... all tests run again, successfully again.  Finally you see:

[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 38 classes.
Report time: 719ms

[INFO] Cobertura Report generation was successful.

When you look at the report, it is all RED.  Zero coverage.  It seems to me
that the generated classes are not put into the test classpath ahead of the
normal classes, as required.  You would expect Cobertura to log that it has
loaded information on the classes under test, too, and I see no logs of that
kind.  Must be a classpath problem.  What should I do?

Thanks,

Richard Brewster



-- 
View this message in context: 
http://www.nabble.com/Cobertura-reporting-0--coverage-tf4496724s2369.html#a12823394
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to