[TESTS] Make PHPUnit exit on first fail and some other tweaks

This commit is contained in:
Hugo Sales 2021-08-03 17:44:22 +00:00
parent 855d427442
commit 229a516fd2
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 11 additions and 2 deletions

3
.gitignore vendored
View File

@ -59,4 +59,5 @@ config.php
notes notes
.test_coverage_report .test_coverage_report
.phpunit_cache

View File

@ -1,6 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html --> <!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="tests/bootstrap.php"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/bootstrap.php"
stopOnFailure="true"
stopOnError="true"
cacheResult="true"
cacheResultFile=".phpunit_cache">
<coverage processUncoveredFiles="true"> <coverage processUncoveredFiles="true">
<include> <include>
<directory suffix=".php">src</directory> <directory suffix=".php">src</directory>