Closed julien-boudry closed 6 years ago
This should have been reported on the php-code-coverage project.
I am sorry that I have to close this issue here as GitHub does not support moving issues from one project to another.
@julien-boudry you have forceCoversAnnotation = "true"
in your phpunit.xml.dist
and no @covers
annotation in the test, so the behaviour is perfectly fine.
@kubawerlos : Many thanks. It's working well now.
But that is still not understandable from my point of view. Because if we take the real deposit (not the test deposit that I quoted in the first place): This is the case for all the tests, except this one only defers coverage at 0%. The other classes do not have this problem
I'm satisfied with that, though. Thank you very much.
Hi,
Code coverage seem working correctly for most class.
But one class pass tests successfully ... But stats coverage stay... 0% (line, method, class). I try many things, verify many times, but coverage stay alway at 0%.
I need help, because it's look like au nice bug.
For testing, i make a fork of my project, deleting all other test, and create one test method spécially for show this 0% coverage.
Reproduce (dedicated repository) :
For testing, i make a fork of my project, deleting all other test, and create one test method spécially for show this 0% coverage.
Repository specially for debug purpose : https://github.com/CondorcetPHP/CondorcetCoverageBug
Test : Test pass, but no coverage
Reproduce (full repository) :
Bug also real from the original real repository, with many tests and coverage valid: https://github.com/julien-boudry/Condorcet
Thanks for help !