Updated readme for unit testing
This commit is contained in:
parent
52c3971fc6
commit
5d2aae4525
|
@ -19,4 +19,19 @@ DbUnit overwrites a file that's actually part of the PHPUnit package,
|
|||
with a version that's incompatible and gives an error for us.
|
||||
|
||||
|
||||
2) Running the unit tests:
|
||||
|
||||
1. To run all the unit tests, run:
|
||||
|
||||
$ sudo ./runtests.sh
|
||||
|
||||
(It has to be run as root to access the database for now.)
|
||||
|
||||
2. To run one specific test, you can do something like:
|
||||
|
||||
$ export AIRTIME_UNIT_TEST="1"
|
||||
$ sudo -E phpunit --filter testEditReatingShowInstance application/services/database/ShowServiceDbTest.php
|
||||
|
||||
IMPORTANT: Make sure you use "sudo" with the "-E" flag so it preserves the environment variable we set before that.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue