-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Paolo T. edited this page Nov 14, 2013
·
3 revisions
PHP Code Sniffer wrapper. Detects violations of a defined set of coding standards.
wp phpcs run --files=<files>
--files=<files>
Comma-separated files or paths to check
PHP Mess Detector wrapper. Analyze source code for several potential problems.
wp phpmd run <folder>
<folder>
Folder to check
PHPunit wrapper. Run PHPunit unit tests.
wp phpunit run [--core] [--plugin=<plugin>] [--tests-folder=<tests>]
--core
Run WordPress core unit tests
--plugin=<plugin>
Run selected plugin unit tests
--tests-folder=<tests>
Optional WordPress unit tests folder
#### EXAMPLES
wp phpunit run --core
wp phpunit run --plugin=plugin-slug
wp phpunit run --core --unit_tests=/home/user/src/wp-unit-tests/