Robert Morley wrote:
> Hey Adam, this is not what my results have shown.  When I execute the
> tests in our current trunk there are 216 tests executed (from the JUnit
> reports) and I get code coverage on UtilValidate based on my initial
> comment in the other thread "Here is my question -- when looking at the
> reports it showed 100% line code coverage in UtilValidate (for example)
> but this was for 111 lines.  Clearly this class has many more lines than
> that, and when I opened it up I saw that large portions of it were not
> marked green or red in the report.  What gives?  :)"

You misunderstand.  The classes are marked 100% covered, but that is
the problem.  They are *not* 100% covered.  The bug is that the double
class loaders are writing to the same cobertura.dat file, and the
first classloader, that contains framework/base code, gets corrupted
output.

You loading framework/base as a component, so it's testdef files can
be run, will not solve the actual problem, of the double classloaders,
and 2 cobertura instances.

Without loading any of the framework/base tests, we should still get
correct coverage values on base, just because it happens to be called
by everything else in the system.  But we don't, the numbers are wrong.

Reply via email to