Skip to content
Snippets Groups Projects
Commit b31248ea authored by jurgenhaas's avatar jurgenhaas
Browse files

Add phpunit as a composer script

parent 880512d7
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,18 @@ class Handler {
'script' => 'phpcs --standard=DrupalPractice web/modules/custom/ web/profiles/custom/ web/themes/custom/',
'description' => 'Run PHP Code Sniffer on custom code',
],
'phpunit:test' => [
'script' => 'vendor/bin/phpunit --configuration tests/phpunit.xml.dist',
'description' => 'Run PHPUnit tests on custom code',
],
'phpunit:list:suites' => [
'script' => 'vendor/bin/phpunit --configuration tests/phpunit.xml.dist --list-suites',
'description' => 'List all PHPUnit test suites for custom code',
],
'phpunit:list:groups' => [
'script' => 'vendor/bin/phpunit --configuration tests/phpunit.xml.dist --list-groups',
'description' => 'List all PHPUnit test groups from custom code',
],
];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment