I tried enabling code coverage for an ANT build and am getting this error:
: java (4s)
: java.lang.NoClassDefFoundError: com/vladium/emma/rt/RT
: at com.automatedlogic.green.mbtool.ProcessMbDocument.$VRi(ProcessMbDocument.java)
: at com.automatedlogic.green.mbtool.ProcessMbDocument.]]>(ProcessMbDocument.java)
: Exception in thread "main"
: Java returned: 1
The relevant part of our build (the createcbs target) uses the ]]> task to run some custom code to generate part of the data needed for build. I've tried fork="false" and clonevm="true" (not at the same time, of course) on this task but this does not help. Is there any way to get code coverage for this build?
Also, because of the size of our project, we have an "integration build" build and about 9 "test" builds defined in TeamCity (the tests get the compiled code from artifacts produced by the integration build). So, to get code coverage, I think I need to enable it for all of these builds even though the first is the only one that does the compilation. Is this correct? This seems more confusing than it should..
Thanks for the help,