mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2024-11-01 00:53:10 +01:00
Added test environment
This commit is contained in:
parent
c2fe35a8a5
commit
72f6a71839
@ -29,7 +29,12 @@ existing colors.
|
|||||||
- Please cover your code with unit tests.
|
- Please cover your code with unit tests.
|
||||||
|
|
||||||
## start
|
## start
|
||||||
To run the program execute
|
To run the program execute:
|
||||||
```bash
|
```bash
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
## test
|
||||||
|
To run the tests execute:
|
||||||
|
```bash
|
||||||
|
test.sh
|
||||||
|
```
|
||||||
|
20
src/phpunit.xml
Normal file
20
src/phpunit.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<phpunit bootstrap="./vendor/autoload.php">
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="Controllers">
|
||||||
|
<directory>./controller/</directory>
|
||||||
|
<file>*Test.php</file>
|
||||||
|
</testsuite>
|
||||||
|
<testsuite name="Core">
|
||||||
|
<directory>./core/</directory>
|
||||||
|
<file>*Test.php</file>
|
||||||
|
</testsuite>
|
||||||
|
<testsuite name="Entities">
|
||||||
|
<directory>./entity/</directory>
|
||||||
|
<file>*Test.php</file>
|
||||||
|
</testsuite>
|
||||||
|
<testsuite name="Repositories">
|
||||||
|
<directory>./repository/</directory>
|
||||||
|
<file>*Test.php</file>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
</phpunit>
|
Loading…
Reference in New Issue
Block a user