diff --git a/README.md b/README.md index 189c7a4..932eaba 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,12 @@ existing colors. - Please cover your code with unit tests. ## start -To run the program execute +To run the program execute: ```bash docker-compose up -d ``` +## test +To run the tests execute: +```bash + test.sh +``` diff --git a/src/phpunit.xml b/src/phpunit.xml new file mode 100644 index 0000000..6ce9285 --- /dev/null +++ b/src/phpunit.xml @@ -0,0 +1,20 @@ + + + + ./controller/ + *Test.php + + + ./core/ + *Test.php + + + ./entity/ + *Test.php + + + ./repository/ + *Test.php + + + diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..386ea52 --- /dev/null +++ b/test.sh @@ -0,0 +1,2 @@ +#!/bin/bash +(cd ./src && php -d memory_limit=128M vendor/bin/phpunit)