Skip to content
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

Merged
merged 3 commits into from
Apr 27, 2017

Conversation

mikemadison13
Copy link
Contributor

@mikemadison13 mikemadison13 commented Apr 25, 2017

Fixes #1047 .

Changes proposed:

  • adds configurable paths for PHPUnit tests so that tests can live inline with custom modules
  • adds configuration parameter for each PHPUnit test so that drupal may be bootstrapped on demand


### 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):
Copy link
Contributor

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.

@mikemadison13 mikemadison13 force-pushed the BLT-1047 branch 2 times, most recently from 03aa982 to dc253f0 Compare April 26, 2017 13:55
phing/build.yml Outdated
@@ -127,6 +127,13 @@ phpcbf:
- files.php.custom.themes
- files.frontend.custom.themes

phpunit:
- path: '{$repo.root}/tests/phpunit}'
Copy link
Contributor

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?

Copy link
Contributor

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

@grasmash grasmash added the Enhancement A feature or feature request label Apr 27, 2017
@grasmash grasmash merged commit fc002d5 into acquia:8.x Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants