Commit 67a61d16 authored by Karamel's avatar Karamel
Browse files

Add some lazy copy/paste commands into tests/README.

parent 043fe543
......@@ -7,15 +7,20 @@ Copy ../config/test-config-sample.ini to ../config/test-config.ini and set it to
to an empty test database. To be able to test http routes, you must also point to
this instance and create a test user for Pasteque.
Run full tests by calling from the tests directory
Run the full test suite by calling from the tests directory
$phpunit -c testsuites.xml
Tests are broken into thematic parts which can be found in the suites xml.
To run a particular theme run the followin command:
$ phpunit -c testsuite --testsuite <name>
Tests are grouped for each layer of the API, one building upon the previous.
To test each layer separately use one of the following commands:
$ phpunit -c testsuites.xml --testsuite System
$ phpunit -c testsuites.xml --testsuite Model
$ phpunit -c testsuites.xml --testsuite API
$ phpunit -c testsuites.xml --testsuite http
You can run a single test by calling it with phpunit
$ phpunit <directory>/<test file>
Be sure the database is in the good state to begin the tests. Use doctrine
to erase/set up the database with orm:schema-tool:drop and create.
$ php vendor/bin/doctrine orm:schema-tool:drop
$ php vendor/bin/doctrine orm:schema-tool:create
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment