Commit 0fe5a89f authored by Karamel's avatar Karamel
Browse files

Add some details in the test README.

parent 375edf36
How to test Pasteque
====================
You must have phpunit installed.
You must have phpunit installed. See https://phpunit.de for installation.
Copy ../config/test-config-sample.ini to ../config/test-config.ini and set it to point
to an empty test database. To be able to test http routes, you must also point to
......@@ -20,7 +20,16 @@ $ phpunit -c testsuites.xml --testsuite http
You can run a single test by calling it with phpunit
$ phpunit <directory>/<test file>
To test the fiscal mirror mode, use testsuitesfm.xml. Make sure your config.ini files
sets the server mode to the fiscal mirror mode.
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
Writing new tests
=================
All tests must be named *Test.php to be automatically included in the test suites.
Put the test file in the according directory.
Markdown is supported
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