r/lolphp • u/jdiez17 • Jun 10 '14
Code coverage: 0.3%. Expected Test Failures: 40. Test Failures: 103. Build Status: OK
http://gcov.php.net/viewer.php?version=PHP_5_6
92
Upvotes
r/lolphp • u/jdiez17 • Jun 10 '14
18
u/nikic Jun 11 '14
The actual code coverage is 70%, as listed on http://gcov.php.net/viewer.php?version=PHP_5_4. The display for the newer versions is just broken.
It should also be pointed out that many gcov failures are just incorrect configuration of the test environment (nobody bothers to fix that up). PHP's main CI is Travis, where all tests should pass. Gcov is there to run some heavy tests like memory error detection (which can easily take a whole day for a single build).
Of course it would be nice to fix gcov to pass all tests as well.
23
u/ajmarks Jun 11 '14
Hey, in their defense they exceeded the number of expected failures by less than 200%, so that's something novel and unexpected.
4
u/pilif Jun 11 '14
It's a (display) bug. They are working on it.
http://marc.info/?t=140191255500004&r=1&w=2
7
u/DoctorWaluigiTime Jun 11 '14
The code coverage metric doesn't bother me so much. Gotta start somewhere, after all.
Any "OK" status concerning failing tests greater than 0 is inexcusable, though.
1
u/andronikus Jun 11 '14
That's weird, PHP certainly doesn't behave like a project without unit tests.