Browse Source

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

v3
Hugo Sales 2 months ago
parent
commit
229a516fd2
Signed by: someonewithpc <hugo@hsal.es> GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 11 additions and 2 deletions
  1. +2
    -1
      .gitignore
  2. +9
    -1
      phpunit.xml.dist

+ 2
- 1
.gitignore View File

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


.test_coverage_report
.test_coverage_report
.phpunit_cache

+ 9
- 1
phpunit.xml.dist View File

@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 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">
<include>
<directory suffix=".php">src</directory>


Loading…
Cancel
Save