Skip to content

Commit b7b8b72

Browse files
authored
Merge pull request #53 from wmde/improve-testing
Improve PHPUnit configuration
2 parents b51d0b2 + 6511d23 commit b7b8b72

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ phpunit:
2121
docker-compose run --rm --no-deps app ./vendor/bin/phpunit
2222

2323
phpunit-with-coverage:
24-
docker-compose -f docker-compose.yml run --rm --no-deps -e XDEBUG_MODE=coverage app_debug ./vendor/bin/phpunit $(COVERAGE_FLAGS)
24+
docker-compose -f docker-compose.yml run --rm --no-deps -e XDEBUG_MODE=coverage app ./vendor/bin/phpunit $(COVERAGE_FLAGS)
2525

2626
cs:
2727
docker-compose run --rm --no-deps app ./vendor/bin/phpcs

phpunit.xml.dist

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0"?>
22
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
backupGlobals="false"
5-
bootstrap="tests/bootstrap.php"
6-
colors="true"
7-
stopOnError="false"
8-
stopOnFailure="false"
9-
stopOnIncomplete="false"
10-
stopOnSkipped="false"
11-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
12-
cacheDirectory=".phpunit.cache"
13-
backupStaticProperties="false"
14-
requireCoverageMetadata="true"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
bootstrap="tests/bootstrap.php"
6+
colors="true"
7+
stopOnError="false"
8+
stopOnFailure="false"
9+
stopOnIncomplete="false"
10+
stopOnSkipped="false"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
12+
cacheDirectory=".phpunit.cache"
13+
backupStaticProperties="false"
14+
requireCoverageMetadata="true"
1515
>
1616
<testsuites>
1717
<testsuite name="unit">
@@ -21,6 +21,12 @@
2121
<source>
2222
<include>
2323
<directory suffix=".php">src</directory>
24-
</include>
24+
</include>
25+
<exclude>
26+
<directory suffix=".php">src/DataAccess/Migrations</directory>
27+
<directory suffix=".php">src/DataAccess/DoctrineTypes</directory>
28+
<file>src/ScalarTypeConverter.php</file>
29+
<file>src/AddressChangeContextFactory.php</file>
30+
</exclude>
2531
</source>
2632
</phpunit>

0 commit comments

Comments
 (0)