Html Coverage report too optimistic
Greetings, This happens in PHPUnit 3.5.0, on PHP 5.2.13, with XDebug 2.1.0: In some classes (most of them, in fact) of my project, lines that are not covered do not appear hilighted (neither gray, green nor orange). And now most of the concerned class are marked as beeing 100% covered when they shouldn't. Regards
Without a reproducing example, there is nothing I can do.
I've managed to create a minimal test case reproducing this issue. I've put the test case in this gist https://gist.github.com/609633
The bug occurs when a TestCase is run multiple times within a test suite. This might feel weird but we use this to run the test with multiple configuration such as db, db+memcached, db+memcached+sphinx. Both html and clover reports are affected by this bug. As soon as a test gets run multiple times, the coverage reports only account for covered code and treat the remaining part as comment. As a result everything appears as 100% covered. This was not happening with phpunit 3.4
Do not hesitate if you need more info.
Please open a new ticket under the PHP_CodeCoverage project in case the problem still persists.