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

Make PHPCS and PHPUnit test parameters absolute paths

parent b31248ea
No related branches found
No related tags found
No related merge requests found
......@@ -97,19 +97,19 @@ class Handler {
protected function defaults() {
return [
'phpcs' => [
'script' => 'phpcs --standard=DrupalPractice web/modules/custom/ web/profiles/custom/ web/themes/custom/',
'script' => 'phpcs --standard=DrupalPractice $(pwd)/web/modules/custom/ $(pwd)/web/profiles/custom/ $(pwd)/web/themes/custom/',
'description' => 'Run PHP Code Sniffer on custom code',
],
'phpunit:test' => [
'script' => 'vendor/bin/phpunit --configuration tests/phpunit.xml.dist',
'script' => 'vendor/bin/phpunit --configuration $(pwd)/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',
'script' => 'vendor/bin/phpunit --configuration $(pwd)/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',
'script' => 'vendor/bin/phpunit --configuration $(pwd)/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