Commit 72728726 authored by Karamel's avatar Karamel
Browse files

Update some installation and test procedures in README.md and tests/README.

parent f4bc8b64
......@@ -34,7 +34,9 @@ Then copy `/config/test-config-sample.ini` to `/config/test-config.ini`. Edit th
Use `php vendor/bin/doctrine orm:schema-tool:update --force` to install the database structure. No data are provided yet.
Make your web server point to `/src/http/public` and for apache, put the following `.htaccess` in `/src/http/public`
Generate proxies with `php vendor/bin/doctrine orm:generate-proxies` then make the directory `src/generated` writeable by your web server user.
Make your web server point to `/src/http/public` and for apache, put the following `.htaccess` in `/src/http/public` and make sure `AllowOverride All` is set for the directory.
```
RewriteEngine On
......
......@@ -3,8 +3,9 @@ How to test Pasteque
You must have phpunit installed.
Copy ../test-config-sample.ini to test-config.ini and set it to point
to an empty test database.
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
this instance and create a test user for Pasteque.
Run full tests by calling from the tests directory
$phpunit -c testsuites.xml
......@@ -16,8 +17,5 @@ $ phpunit -c testsuite --testsuite <name>
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 the pseudo
test clear.php and install.php to erase/set up the database. These init/destroy
scripts are automatically run in the test suites.
$ phpunit clear.php
$ phpunit install.php
\ No newline at end of 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.
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