Using own properties for code coverage
Hi *,
is there a possibility to run code coverage (Emma for a Java project) with your own properties, let's say taken from a .properties file?
Simple example: I would like to change the default sorting in the code coverage result (html overview) - I like to sort first by name instead of block.
I created a file named emma.properties with the following content:
report.sort = +name,+block,+method,+class
Then I passed the properties with "Coverage instrumentation parameters:" in the "Coverage Info" section in my Ant Build Runner:
-props emma.properties
Also passing a sort parameter directly seems not to work:
-Dreport.sort=+name,+block,+method,+class
It seems that TeamCity overrides my settings... any suggestions?
Thanks in advance
Enrico
Please sign in to leave a comment.
Hello,
In your case, you should specify system property emma.report.sort with value +name,+block,+method,+class in TeamCity UI (in the section System properties and environment variables).
Hope this helps,
KIR
Works just fine.
Many thanks