Skip to content
Scott Dutton edited this page May 24, 2019 · 3 revisions

Welcome to the coverageChecker wiki!

Some example usage and explanation of concepts exist here

See the individual pages for some more in depth examples of usage

You can re use the diff between tests for example

git diff origin/master... > diff.txt

phpcs --standard=psr2 src > phpcs.json || true
./vendor/bin/diffFilter --phpcs diff.txt phpcs.json

phpmd src xml cleancode > phpmd.xml  || true 
./vendor/bin/diffFilter --phpmd diff.txt phpmd.xml 90

This check runs both phpcs and phpmd with the same diff. All of the changed code must conform to psr2 but only 90% of the code must be "clean" by phpmd's definition

Clone this wiki locally