Andrew Plank
Andrew Plank

Reputation: 1009

PHPUnit code coverage shows code coverage of Unit tests?

I'm using Michael Romer's fantastic ZF-Boilerplate and have hit a snag when testing.

When I view the code coverage reports, it only shows the code coverage for the actual unit tests, not for the code being tested.

I've looked high and low for instances of this happening, but can't find anything. As far as I can see, the phpunit.xml (https://github.com/michael-romer/zf-boilerplate/blob/master/tests/phpunit.xml) file is configured correctly for the directory structure (https://github.com/michael-romer/zf-boilerplate)

Is there anyone that can see why it's not working?

Upvotes: 1

Views: 199

Answers (1)

Andrew Plank
Andrew Plank

Reputation: 1009

Typical... a couple minutes after I posted I figured it out. I moved the phpunit.xml up a directory, modified the paths inside it to relfect this, and tried again, and it worked as expected.

Upvotes: 1

Related Questions