It's all about the answers!

Ask a question

Code Coverage Example


Jacob Thompson (8662) | asked Jan 18 '08, 4:55 p.m.
So, I have been over the example code coverage build script many times now and it just is not working.

The problem is that it seems JUnit is not generating the expected coverage file.

It is run with -Xbootclasspath/a:... -Drt.control... , this is taken straight from the example.

However running this through the build and running this command line does not seem to be doing anything emma related. JUnit runs as normal, and runs all the test cases, but no output.

The files are instrumented it seems, but maybe I am missing something.

Has anyone had success setting up the sample?

Thanks,
Jake

2 answers



permanent link
Tobias Widmer (3211) | answered Jan 22 '08, 6:08 a.m.
jatsrt schrieb:
So, I have been over the example code coverage build script many times
now and it just is not working.

The problem is that it seems JUnit is not generating the expected
coverage file.

It is run with -Xbootclasspath/a:... -Drt.control... , this is taken
straight from the example.

However running this through the build and running this command line
does not seem to be doing anything emma related. JUnit runs as
normal, and runs all the test cases, but no output.

The files are instrumented it seems, but maybe I am missing something.


Has anyone had success setting up the sample?

Thanks,
Jake

Hi,


Could you maybe attach your adapted build script?

Cheers,
Tobias

permanent link
Jacob Thompson (8662) | answered Jan 22 '08, 10:00 p.m.
See my working build.xml at

https://jazz.net/forums/viewtopic.php?t=703

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.