Skip to content

Commit d86c73e

Browse files
committed
🚨 run tests easier and newer
1 parent 178f444 commit d86c73e

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,6 @@ FakesAssemblies/
187187
composer.lock
188188

189189
# .vs
190-
.vs/
190+
.vs/
191+
192+
.phpunit.result.cache

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,10 @@
3636
"psr-4": {
3737
"Tests\\": "tests/"
3838
}
39+
},
40+
"scripts": {
41+
"test": [
42+
"XDEBUG_MODE=coverage phpunit"
43+
]
3944
}
4045
}

phpunit.xml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
33
backupStaticAttributes="false"
44
colors="true"
55
convertErrorsToExceptions="true"
66
convertNoticesToExceptions="true"
77
convertWarningsToExceptions="true"
88
processIsolation="false"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
10+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
911
stopOnFailure="false">
1012
<testsuites>
1113
<testsuite name="Unit">
1214
<directory suffix="Test.php">./tests</directory>
1315
</testsuite>
1416
</testsuites>
15-
<filter>
16-
<whitelist processUncoveredFilesFromWhitelist="true">
17+
<coverage processUncoveredFiles="true">
18+
<include>
1719
<directory suffix=".php">./lib</directory>
18-
</whitelist>
19-
</filter>
20-
</phpunit>
20+
</include>
21+
<report>
22+
<html outputDirectory="build/coverage"/>
23+
<text outputFile="php://stdout"/>
24+
</report>
25+
</coverage>
26+
</phpunit>

0 commit comments

Comments
 (0)