Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pasteque
pasteque-server
Commits
67a61d16
Commit
67a61d16
authored
Jan 09, 2020
by
Karamel
Browse files
Add some lazy copy/paste commands into tests/README.
parent
043fe543
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/README
View file @
67a61d16
...
...
@@ -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 test
s
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment