X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2FUnit-tests.html;h=09611463da9b3879651486a5e5ba8e93a021cd21;hb=b230bf207df576fa2ad165702184edf21f674ce7;hp=266fd33a2318ce07bc57ad484154928aa478e001;hpb=f501caed215bd12caced5106f9226638b2b15fb4;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/Unit-tests.html b/doc/Unit-tests.html index 266fd33a..09611463 100644 --- a/doc/Unit-tests.html +++ b/doc/Unit-tests.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
  • Browsing and Searching
  • Firefox share
  • RSS feeds
  • +
  • REST API
  • How To +

    Executing specific tests

    +

    Add a @group annotation in a test class or method comment:

    +
    /**
    + * Netscape bookmark import
    + * @group WIP
    + */
    +class BookmarkImportTest extends PHPUnit_Framework_TestCase
    +{
    +   [...][](.html)
    +}
    +

    To run all tests annotated with @group WIP:

    +
    $ vendor/bin/phpunit --group WIP tests/