diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-05-07 18:44:05 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-05-07 18:44:05 +0200 |
commit | b230bf207df576fa2ad165702184edf21f674ce7 (patch) | |
tree | 90af6fbddda19c22c1bd21e2fc6ed135116cce48 /doc/Unit-tests.md | |
parent | f501caed215bd12caced5106f9226638b2b15fb4 (diff) | |
download | Shaarli-b230bf207df576fa2ad165702184edf21f674ce7.tar.gz Shaarli-b230bf207df576fa2ad165702184edf21f674ce7.tar.zst Shaarli-b230bf207df576fa2ad165702184edf21f674ce7.zip |
Bump version to v0.9.0
Signed-off-by: ArthurHoaro <arthur@hoa.ro>
Diffstat (limited to 'doc/Unit-tests.md')
-rw-r--r-- | doc/Unit-tests.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/Unit-tests.md b/doc/Unit-tests.md index f2888780..0942ad38 100644 --- a/doc/Unit-tests.md +++ b/doc/Unit-tests.md | |||
@@ -126,3 +126,22 @@ If Xdebug has been installed and activated, two coverage reports will be generat | |||
126 | * a summary in the console | 126 | * a summary in the console |
127 | * a detailed HTML report with metrics for tested code | 127 | * a detailed HTML report with metrics for tested code |
128 | * to open it in a web browser: `firefox coverage/index.html &` | 128 | * to open it in a web browser: `firefox coverage/index.html &` |
129 | |||
130 | ### Executing specific tests | ||
131 | Add a [`@group`](https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.group) annotation in a test class or method comment:[](.html) | ||
132 | |||
133 | ```php | ||
134 | /** | ||
135 | * Netscape bookmark import | ||
136 | * @group WIP | ||
137 | */ | ||
138 | class BookmarkImportTest extends PHPUnit_Framework_TestCase | ||
139 | { | ||
140 | [...][](.html) | ||
141 | } | ||
142 | ``` | ||
143 | |||
144 | To run all tests annotated with `@group WIP`: | ||
145 | ```bash | ||
146 | $ vendor/bin/phpunit --group WIP tests/ | ||
147 | ``` | ||