wearerequired / traduttore

🗼 A WordPress plugin to improve the I18N workflow for your own projects based on @GlotPress.
https://wearerequired.github.io/traduttore/
72 stars 12 forks source link

Fix Behat code coverage report #256

Closed swissspidy closed 4 months ago

swissspidy commented 1 year ago

IIRC code coverage for the Behat tests never properly worked with pcov.

I just got it working at https://github.com/10up/plugin-check/pull/215 with xdebug though. So would be nice to do that here as well.

Another main issue with the setup here is that the source folders are configured incorrectly:

https://github.com/wearerequired/traduttore/blob/a9faec1a8e3b3ddbcb5222d12c2c3bbf17f069fc/tests/behat/maybe-generate-wp-cli-coverage.php#L15-L16

It should be inc.

Also, including the traduttore.php file would make sense.