Skip to content

Commit

Permalink
Split tests suites: unit-functional
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Sep 19, 2020
1 parent f5a708b commit 017e20e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: composer run-script test
- name: Run the unit test suite
run: vendor/bin/phpunit --testsuite unit

- name: Run the functional test suite
run: vendor/bin/phpunit --testsuite functional
8 changes: 6 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
</php>

<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">tests</directory>
<testsuite name="functional">
<directory suffix="Test.php">tests/Functional</directory>
</testsuite>

<testsuite name="unit">
<directory suffix="Test.php">tests/Unit</directory>
</testsuite>
</testsuites>

Expand Down

0 comments on commit 017e20e

Please sign in to comment.