TeamCity reports on tests being run twice when using Emma

I apologize in advance if this question has been answered.  After a while of searching, a person gets to feel like they are going in circles!

We are using Maven for our builds, and we use the maven Emma plugin to get code coverage results.  This results in the tests being run twice by Maven, which, apparently, we can't really work around from what I've read.  Please correct me if I'm wrong about this.  We are okay with this as long as we can get TeamCity to only report on one run of the test cases, however we are getting the results doubled in this scenario.  Is there a way for us to configure either TeamCity or Maven so that TeamCity only reports the tests running once?

1 comment
Comment actions Permalink

Hello Elizabeth,

  TeamCity indeed reports all the runs of a test, and this cannot be avoided. I don't clearly understand why this is a problem - if you really run tests twice, you may want to know if test runs OK the first time but fails second time.

  Regards,
  KIR

0

Please sign in to leave a comment.