Code coverage report includes test classes ?
Hi,
Loving the built in code coverage. I have a puzzle.
When I do "generate report" it produces the report which includes Test classes (see below).
Ive put all my test cases in source folders marked as test sources. Is there something I am missing?
cheers
Jim
Please sign in to leave a comment.
Hello Jim,
you can enable/disable code coverage in test folders: the corresponding checkbox is on the Code Coverage tab of your run configuration.
Thank you
Hi Anna,


Thanks for the quick response. Actually I tried enabling / disabling the include test classes option, sorry I should have mentioned that in my original post.
Here are my test settings.
One thing i notice is in the console output:
<pre>
com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @@/private/var/folders/bF/bF326wGVFcGSoPT2H6oY3++++TI/-Tmp-/junitlisteners1707107575701320589 @/var/folders/bF/bF326wGVFcGSoPT2H6oY3++++TI/-Tmp-/idea_junit1208448400667430475.tmp -socket64003
---- IDEA coverage runner ----
tracing and tracking per test coverage ...
include patterns:
org\.ixcode\.grep\..*
exclude patterns:
</pre>
I notice that there is nothing in "exclude patterns:" should there be something there?
Any other places I should look?
This is my source folder setup:
cheers
Jim
Sounds like a bug. Could you please check if you have coverage information shown in test roots in project view/in editor? Thank you
Hi Anna,

Thats a good thought, I just looke (picture attatched) so the coverage works ok in the IDE, and actually as can bee seen from the image, the Test trees dont show anything.
cheers
Jim
Report is fixed. Thank you
Cool, thanks! Will it make it into the next version of IDEA?
cheers
Jim
Seems so.