File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 - name : Wait for Server to be ready
2525 run : sleep 10
2626
27+ - name : Run unit Tests
28+ run : docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml --testsuite=unit
29+
2730 - name : Run FPM Tests
2831 run : docker compose exec fpm vendor/bin/phpunit --configuration phpunit.xml --group=fpm
2932
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ services:
88 volumes :
99 - ./src:/usr/share/nginx/html/src
1010 - ./tests:/usr/share/nginx/html/tests
11+ - ./phpunit.xml:/usr/share/nginx/html/phpunit.xml
1112 networks :
1213 - testing
1314 swoole :
@@ -21,6 +22,7 @@ services:
2122 - ./src:/usr/src/code/src
2223 - ./tests:/usr/src/code/tests
2324 - ./tmp/xdebug:/tmp/xdebug
25+ - ./phpunit.xml:/usr/share/nginx/html/phpunit.xml
2426 networks :
2527 - testing
2628 swoole-coroutine :
@@ -34,6 +36,7 @@ services:
3436 - ./src:/usr/src/code/src
3537 - ./tests:/usr/src/code/tests
3638 - ./tmp/xdebug:/tmp/xdebug
39+ - ./phpunit.xml:/usr/share/nginx/html/phpunit.xml
3740 networks :
3841 - testing
3942
Original file line number Diff line number Diff line change 1010 stopOnFailure =" false"
1111>
1212 <testsuites >
13- <testsuite name =" Application Test Suite" >
14- <file >./tests/e2e/Client.php</file >
13+ <testsuite name =" unit" >
1514 <file >./tests/MockRequest.php</file >
1615 <file >./tests/MockResponse.php</file >
17- <directory >./tests/</directory >
16+ <file >./tests/HookTest.php</file >
17+ <file >./tests/HttpTest.php</file >
18+ <file >./tests/RequestTest.php</file >
19+ <file >./tests/ResponseTest.php</file >
20+ <file >./tests/RouterTest.php</file >
21+ <file >./tests/RouteTest.php</file >
22+ <file >./tests/UtopiaFPMRequestTest.php</file >
23+ <directory >./tests/Validator/</directory >
24+ </testsuite >
25+ <testsuite name =" e2e" >
26+ <file >./tests/e2e/Client.php</file >
27+ <file >./tests/e2e/BaseTest.php</file >
28+ <file >./tests/e2e/ResponseFPMTest.php</file >
29+ <file >./tests/e2e/ResponseSwooleTest.php</file >
30+ <file >./tests/e2e/ResponseSwooleCoroutineTest.php</file >
1831 </testsuite >
1932 </testsuites >
2033</phpunit >
You can’t perform that action at this time.
0 commit comments