3

We tried to use a couple of code-coverage plugins for our spring project (EclEmma,Clover).

Both are providing wrong results regarding the coverage %.

The tests are using Spring's taskExecutor (thread pool).

All the code that the task executors threads executes does not count as covered.

Any ideas why?

Urbanleg
  • 6,252
  • 16
  • 76
  • 139

1 Answers1

0

I got the same issue. It seems that test coverage doesnt work well with multithreads.

  • This does not really answer the question. If you have a different question, you can ask it by clicking [Ask Question](https://stackoverflow.com/questions/ask). To get notified when this question gets new answers, you can [follow this question](https://meta.stackexchange.com/q/345661). Once you have enough [reputation](https://stackoverflow.com/help/whats-reputation), you can also [add a bounty](https://stackoverflow.com/help/privileges/set-bounties) to draw more attention to this question. - [From Review](/review/late-answers/34633675) – ryanwebjackson Jul 08 '23 at 19:22