]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - doc/Unit-tests.md
Bump version to v0.9.0
[github/shaarli/Shaarli.git] / doc / Unit-tests.md
index f288878057d44e31466d77b0f1f4cc37221757c9..0942ad382fd18f0b4f976f22fb560bb9e22c7842 100644 (file)
@@ -126,3 +126,22 @@ If Xdebug has been installed and activated, two coverage reports will be generat
 * a summary in the console
 * a detailed HTML report with metrics for tested code
  * to open it in a web browser: `firefox coverage/index.html &`
+
+### Executing specific tests
+Add a [`@group`](https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.group) annotation in a test class or method comment:[](.html)
+
+```php
+/**
+ * Netscape bookmark import
+ * @group WIP
+ */
+class BookmarkImportTest extends PHPUnit_Framework_TestCase
+{
+   [...][](.html)
+}
+```
+
+To run all tests annotated with `@group WIP`:
+```bash
+$ vendor/bin/phpunit --group WIP tests/
+```