Skip to content

Commit

Permalink
MTACC-1047: updating testing docs for 1047/1048 changes to PHPUnit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemadison13 committed Apr 25, 2017
1 parent ce9cad2 commit 677f871
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,12 @@ Project level, functional PHPUnit tests are included in `tests/phpunit`. Any PHP
* [Test Driven Development: By Example (book)](http://www.amazon.com/dp/0321146530)
* [xUnit Test Patterns: Refactoring Test Code (book for the really serious)](http://amazon.com/dp/0131495054)
* [Unit testing: Why bother?](http://soundsoftware.ac.uk/unit-testing-why-bother/)

### Configuration

PHPunit's behavior(s) can be further customized via the project.yml file to provide additional levels of control on a per project basis. See [Extending BLT](extending-blt.md) for more information.

The each index in the phpunit array in project.yml should contain 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):

* config: path to either the Core phpunit configuration file (docroot/core/phpunit.xml.dist) or a custom one. If left blank, no configuration will be loaded with the unit test.
* path: the path to the custom phpunit test

0 comments on commit 677f871

Please sign in to comment.