Skip to content

Commit

Permalink
Run unit tests in test-integration
Browse files Browse the repository at this point in the history
And run the web tests in the acc tests
  • Loading branch information
MKodde committed Nov 13, 2023
1 parent ef91c84 commit 3393d58
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: composer install

- name: Run QA tests
run: composer behat
run: composer web-tests
2 changes: 0 additions & 2 deletions ci/qa/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

cd $(dirname $0)/../../

echo $1

APP_ENV=test APP_DEBUG=0 ./vendor/bin/phpunit -c ci/qa/phpunit.xml.dist $1
7 changes: 5 additions & 2 deletions ci/qa/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
</php>
<testsuites>
<testsuite name="unit tests">
<directory suffix="Test.php">../../tests</directory>
<testsuite name="UnitTests">
<directory suffix="Test.php">../../tests/Unit</directory>
</testsuite>
<testsuite name="WebTests">
<directory suffix="Test.php">../../tests/Functional/WebTests</directory>
</testsuite>
</testsuites>
</phpunit>
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@phpcs",
"@phpmd",
"@phpstan",
"@test"
"@unit-test"
],

"behat": "./ci/qa/behat",
Expand All @@ -91,6 +91,8 @@
"phpstan": "./ci/qa/phpstan",
"phpstan-baseline": "./ci/qa/phpstan-update-baseline",
"test": "./ci/qa/phpunit",
"unit-tests": "./ci/qa/phpunit --testsuite=UnitTests",
"web-tests": "./ci/qa/phpunit --testsuite=WebTests",
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
Expand Down

0 comments on commit 3393d58

Please sign in to comment.