Skip to content

Commit 95b7e78

Browse files
committed
Configure PHPUnit to fail on skipped, output during tests, and random execution order
1 parent c877cd9 commit 95b7e78

File tree

20 files changed

+165
-98
lines changed

20 files changed

+165
-98
lines changed

src/Autocomplete/phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
1013
>
1114
<coverage processUncoveredFiles="true">
1215
<include>

src/Chartjs/phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
1013
>
1114
<coverage>
1215
<include>

src/Cropperjs/phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
1013
>
1114
<coverage>
1215
<include>

src/Dropzone/phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
1013
>
1114
<coverage>
1215
<include>

src/Icons/phpunit.xml.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
66
colors="true"
7-
bootstrap="vendor/autoload.php"
7+
bootstrap="tests/bootstrap.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
1013
>
1114
<coverage processUncoveredFiles="true">
1215
<include>

src/LazyImage/phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
1013
>
1114
<coverage>
1215
<include>

src/LiveComponent/phpunit.xml.dist

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
913
>
1014
<coverage processUncoveredFiles="true">
1115
<include>

src/Map/phpunit.xml.dist

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
913
>
1014
<coverage processUncoveredFiles="true">
1115
<include>
1216
<directory suffix=".php">./src</directory>
1317
</include>
1418
</coverage>
15-
19+
1620
<php>
1721
<ini name="error_reporting" value="-1"/>
1822
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>

src/Map/src/Bridge/Google/phpunit.xml.dist

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
913
>
1014
<coverage processUncoveredFiles="true">
1115
<include>

src/Map/src/Bridge/Leaflet/phpunit.xml.dist

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
failOnSkipped="true"
11+
beStrictAboutOutputDuringTests="true"
12+
executionOrder="random"
913
>
1014
<coverage processUncoveredFiles="true">
1115
<include>

0 commit comments

Comments
 (0)