PHPUnit Coverage is ... moving

40 Views Asked by At

I have a symfony application codebase. I run phpunit on it, and some classes are sometimes part of the code coverage, and sometimes, they are not.

Because of that, the code coverage percentage is randomly moving.

It's really confusing and it only happens in this specific project.

I use pcov for the code coverage.

I checked phpunit.xml and some files that should not be ignored, are ignored most of the time.

Is there a way with phpunit to have a list of the files taken into account for the code coverage ?

Edit :

I launch the tests with : phpunit --testdox --testsuite app --coverage-html coverage

0

There are 0 best solutions below