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

2 comments
Comment actions Permalink

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

0
Comment actions Permalink

Works just fine.

Many thanks

0

Please sign in to leave a comment.