Merge pull request #7654 from SiR-DanieL/patch-4

Fix documentation for unit tests
This commit is contained in:
Mike Jolley 2015-04-08 12:12:53 +01:00
commit 37507ec451
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ A text code coverage summary can be displayed using the `--coverage-text` option
## Writing Tests
* Each test file should roughly correspond to an associated source file, e.g. the `formatting-functions.php` test file covers code in the `wc-formatting-functions.php` file
* Each test file should roughly correspond to an associated source file, e.g. the `formatting/functions.php` test file covers code in the `wc-formatting-functions.php` file
* Each test method should cover a single method or function with one or more assertions
* A single method or function can have multiple associated test methods if it's a large or complex method
* Use the test coverage HTML report (under `tmp/coverage/index.html`) to examine which lines your tests are covering and aim for 100% coverage