views:

599

answers:

2

Hi,

I have a maven2 project in hudson and when the cobertura reporting plugin runs, it causes the unit tests to show that they have run twice. I don't mind them running multiple times, but the trend graph shows twice as many tests as we actually are running. Is there a way to make sure the graph only shows them once?

thanks,

Jeff

A: 

I had the same problem recently when I was running maven goals test and emma:emma on the same job. emma seems to have rerun all tests thus doubling the results. When I removed goal test my unit tests still got executed but test results went back to normal. Could be the same with cobertura.

Energiequant
That probably would work, but that will result in only the instrumented unit tests running. The build really should be running both the instrumented and uninstrumented. I found that switching to a free-style project (although I lost some of the benefits of the maven2 project) behaves a lot better. The trend graphs show up properly and tests are not double counted (even though they are run twice).
Jeff Storey
+2  A: 

This is a known bug. Just wait for it to be fixed.

kazanaki