-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLT-1047: adding ability to customize paths for phpunit tests. #1435
Conversation
8015ab6
to
f8de9bd
Compare
d5971ae
to
abbd1a3
Compare
readme/testing.md
Outdated
|
||
### Configuration | ||
|
||
You can [customize the configuration values](extending-blt.md#modifying-blt-configuration) for the phpunit key. Each should containn a path (to a phpunit test or directory that contains at least one test) and a config path (if custom configuration or boostrapping of Drupal is required): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can customize the tests:phpunit
command by modifying the customize the configuration values for the phpunit
key.
Each row under the phpunit
key should contain a path
and a config
key. The path
key indicates a directory containing PHPUnit tests. The optional config
key can be used to specify a PHP configuration file.
03aa982
to
dc253f0
Compare
phing/build.yml
Outdated
@@ -127,6 +127,13 @@ phpcbf: | |||
- files.php.custom.themes | |||
- files.frontend.custom.themes | |||
|
|||
phpunit: | |||
- path: '{$repo.root}/tests/phpunit}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there braces in the path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expect $repo.root}/tests/phpunit
to work
Fixes #1047 .
Changes proposed: