I try to use ecl-emma eclipse plug in to collect coverage data for my project.
Firstly I list 8 JUnit test files in a JUnit suite file, and run the suite file, It run 44 tests, I got the target test package coverage is 70%. I call the package as "A".
Then I right click the test package and choose "Coverage As" -> "JUnit Test" to do a full run of my project. It run 850 tests, I got all the project coverage is 60%, but the package A I test before is 65% now. and I found 2 files in the package A are marked as 0% covered. which is marked as more than 50% covered when I run the single JUnit suite file.
So my question is why these 2 files show as not covered where other files are fine when I unit test all the package? it works well when I run a single suite file.