EMMA coverage report tool running with incorrect sourcepath

Hi all,

I searched but couldn't find anything associated with this. I'm running an ant build with code coverage turned on. I also have it configured to include source with the reports. The coverage seems to be working alright, but the report can't find the sources to include. When looking at the build log, I think I can see why.

-sp C:\TeamCity\buildAgent\work\82327a74ed43e640\Projects\Paris\test\com\ubs\mkdw -sp C:\TeamCity\buildAgent\work\82327a74ed43e640\Projects\Paris\src\java\com\ubs\mkdw

These two sourcepaths are not located at the base of my package, which is com.ubs.mkdw. By my estimation, this should be;

-sp C:\TeamCity\buildAgent\work\82327a74ed43e640\Projects\Paris\test -sp C:\TeamCity\buildAgent\work\82327a74ed43e640\Projects\Paris\src\java

The problem is, there isn't anywhere in the TeamCity UI to override the report command line. There's a section to add to the instrumentation command line, but that's another step entirely, which is working fine.

Any insights?

Please sign in to leave a comment.