inpsyde / php-coding-standards

Style guide for writing consistent PHP for WordPress projects.
MIT License
98 stars 23 forks source link

Tests should be filterable to run them separately #36

Closed dnaber-de closed 4 years ago

dnaber-de commented 4 years ago

Right now I can only run all tests at once which makes it hard to debug/investigate a single sniff or part of code. It would be nice to have a possibility to run a singe test fixture. This can be achieved using PHPUnit's data provider. So

$ vendor/bin/phpunit --filter function-length-no-blank-lines

will run only the function-length-no-blank-lines.php fixture.

gmazzap commented 4 years ago

Merged with 6b2998b