Skip to content

Commit 7bfc6c9

Browse files
committed
update tests separation using groups
1 parent 0c62db7 commit 7bfc6c9

5 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
run: sleep 10
2626

2727
- name: Run FPM Tests
28-
run: docker compose exec fpm vendor/bin/phpunit --configuration phpunit.xml
28+
run: docker compose exec fpm vendor/bin/phpunit --configuration phpunit.xml --group=fpm
2929

3030
- name: Run Swoole Tests
31-
run: docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml
31+
run: docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml --group=swoole
3232

3333
- name: Run Swoole Corotuine Tests
34-
run: docker compose exec swoole-coroutine vendor/bin/phpunit --configuration phpunit.xml
34+
run: docker compose exec swoole-coroutine vendor/bin/phpunit --configuration phpunit.xml --group=swoole-coroutine

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ services:
1010
- ./tests:/usr/share/nginx/html/tests
1111
networks:
1212
- testing
13-
depends_on:
14-
- swoole
1513
swoole:
1614
build:
1715
context: .

tests/e2e/ResponseFPMTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
use PHPUnit\Framework\TestCase;
66
use Tests\E2E\Client;
77

8+
/**
9+
* @group fpm
10+
* @group e2e
11+
*/
812
class ResponseFPMTest extends TestCase
913
{
1014
use BaseTest;

tests/e2e/ResponseSwooleCoroutineTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
use PHPUnit\Framework\TestCase;
66
use Tests\E2E\Client;
77

8+
/**
9+
* @group swoole-coroutine
10+
* @group e2e
11+
*/
812
class ResponseSwooleCoroutineTest extends TestCase
913
{
1014
use BaseTest;

tests/e2e/ResponseSwooleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
use PHPUnit\Framework\TestCase;
66
use Tests\E2E\Client;
77

8+
/**
9+
* @group swoole
10+
* @group e2e
11+
*/
812
class ResponseSwooleTest extends TestCase
913
{
1014
use BaseTest;

0 commit comments

Comments
 (0)