Skip to content

Commit 88b41c7

Browse files
author
ityaozm@gmail.com
committed
ci(phpunit): Remove coverage settings and add source settings
- Removed coverage settings from phpunit.xml.dist - Added source settings to phpunit.xml.dist
1 parent bf7b914 commit 88b41c7

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

phpunit.xml.dist

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
33
backupGlobals="false"
4-
backupStaticAttributes="false"
54
bootstrap="vendor/autoload.php"
65
cacheResultFile="build/phpunit/.phpunit.result.cache"
76
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
117
processIsolation="false"
128
stopOnFailure="false"
13-
verbose="true"
149
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1510
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
1611
>
17-
<coverage processUncoveredFiles="true">
18-
<include>
19-
<directory suffix=".php">./app</directory>
20-
</include>
21-
<exclude>
22-
<!--<directory>app/Contracts</directory>-->
23-
<file>app/Commands/BuildCommand.php</file>
24-
<file>app/Support/JsonFixer.php</file>
25-
<file>app/Support/helpers.php</file>
26-
<file>app/Macros/StrMacro.php</file>
27-
</exclude>
28-
</coverage>
2912
<testsuites>
3013
<testsuite name="Feature">
3114
<directory suffix="Test.php">./tests/Feature</directory>
@@ -36,6 +19,30 @@
3619
<exclude>vendor/</exclude>
3720
</testsuite>
3821
</testsuites>
22+
<!--<coverage processUncoveredFiles="true">
23+
<include>
24+
<directory suffix=".php">./app</directory>
25+
</include>
26+
<exclude>
27+
&lt;!&ndash;<directory>app/Contracts</directory>&ndash;&gt;
28+
<file>app/Commands/BuildCommand.php</file>
29+
<file>app/Support/JsonFixer.php</file>
30+
<file>app/Support/helpers.php</file>
31+
<file>app/Macros/StrMacro.php</file>
32+
</exclude>
33+
</coverage>-->
34+
<source>
35+
<include>
36+
<directory suffix=".php">./app</directory>
37+
</include>
38+
<exclude>
39+
<!--<directory>app/Contracts</directory>-->
40+
<file>app/Commands/BuildCommand.php</file>
41+
<file>app/Support/JsonFixer.php</file>
42+
<file>app/Support/helpers.php</file>
43+
<file>app/Macros/StrMacro.php</file>
44+
</exclude>
45+
</source>
3946
<!--<listeners>
4047
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
4148
<arguments>

0 commit comments

Comments
 (0)