(There are a ton of these questions, but all the ones I can find are related to Maven. Before you suggest, this is a duplicate, please understand that this has nothing to do with Maven.)
I use Cobertura in Eclipse to determine my percentage of code covered by my JUnit tests. All 99 of my unit tests run successfully inside and outside Cobertura, but Cobertura reports that they covered 0% of my code.
I:
- I run Cobertura through the Eclipse plugin
- I am using Java 6, specifically OpenJDK-AMD64 on Ubuntu
- ensure that unit tests cover some sections of my code.
- guaranteed that Cobertura runs my entire test folder in the entire src folder
- tried to clean and rebuild
Why is Cobertura reporting 0%?
source
share