Skip to content

Commit

Permalink
Fix: Merge configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 28, 2021
1 parent 068c679 commit 068439f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 46 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/integrate.yaml
Expand Up @@ -58,7 +58,7 @@ jobs:
dependencies: "${{ matrix.dependencies }}"

- name: "Collect code coverage with Xdebug and phpunit/phpunit"
run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml --coverage-clover=.build/logs/clover.xml"
run: "vendor/bin/phpunit --configuration=test/phpunit.xml --coverage-clover=.build/logs/clover.xml"

- name: "Send code coverage report to Codecov.io"
env:
Expand Down Expand Up @@ -332,7 +332,7 @@ jobs:
dependencies: "${{ matrix.dependencies }}"

- name: "Run unit tests with phpunit/phpunit"
run: "vendor/bin/phpunit --configuration=test/Unit/phpunit.xml"
run: "vendor/bin/phpunit --configuration=test/phpunit.xml --testsuite=unit"

- name: "Run integration tests with phpunit/phpunit"
run: "vendor/bin/phpunit --configuration=test/Integration/phpunit.xml"
run: "vendor/bin/phpunit --configuration=test/phpunit.xml --testsuite=integration"
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -51,8 +51,8 @@ static-code-analysis-baseline: vendor ## Generates a baseline for static code an
.PHONY: tests
tests: vendor ## Runs unit and integration tests with phpunit/phpunit
mkdir -p .build/phpunit
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml
vendor/bin/phpunit --configuration=test/Integration/phpunit.xml
vendor/bin/phpunit --configuration=test/phpunit.xml --testsuite=unit
vendor/bin/phpunit --configuration=test/phpunit.xml --testsuite=integration

vendor: composer.json composer.lock
composer validate --strict
Expand Down
35 changes: 0 additions & 35 deletions test/Unit/phpunit.xml

This file was deleted.

15 changes: 9 additions & 6 deletions test/Integration/phpunit.xml → test/phpunit.xml
@@ -1,15 +1,15 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="../vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="../../vendor/autoload.php"
bootstrap="../vendor/autoload.php"
cacheResult="true"
cacheResultFile="../../.build/phpunit/integration.cache"
cacheResultFile="../.build/phpunit/cache"
colors="true"
columns="max"
convertErrorsToExceptions="true"
Expand All @@ -24,7 +24,7 @@
>
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
<include>
<directory suffix=".php">../../src/</directory>
<directory suffix=".php">../src/</directory>
</include>
</coverage>
<php>
Expand All @@ -33,8 +33,11 @@
<ini name="memory_limit" value="-1"/>
</php>
<testsuites>
<testsuite name="Integration Tests">
<directory>.</directory>
<testsuite name="integration">
<directory>Integration/</directory>
</testsuite>
<testsuite name="unit">
<directory>Unit/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 068439f

Please sign in to comment.