1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Make PHPUnit strict about risky tests

This commit is contained in:
Luís Cobucci 2017-08-06 12:51:16 +02:00
parent aa13e49fdf
commit 27300bf4af
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C
5 changed files with 34 additions and 15 deletions

View File

@ -11,15 +11,11 @@
tests/ folder: phpunit -c <filename> ...
Example: phpunit -c mysqlconf.xml AllTests
-->
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
verbose="true"
failOnRisky="true"
bootstrap="./tests/Doctrine/Tests/TestInit.php"
>

View File

@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
verbose="true"
failOnRisky="true"
bootstrap="../Doctrine/Tests/TestInit.php"
>
<php>
<var name="db_type" value="pdo_mysql"/>
<var name="db_host" value="localhost" />

View File

@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
verbose="true"
failOnRisky="true"
bootstrap="../Doctrine/Tests/TestInit.php"
>
<php>
<var name="db_type" value="pdo_mysql"/>
<var name="db_host" value="localhost" />

View File

@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
verbose="true"
failOnRisky="true"
bootstrap="../Doctrine/Tests/TestInit.php"
>
<php>
<!-- "Real" test database -->
<var name="db_type" value="pdo_pgsql"/>

View File

@ -1,6 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
colors="true"
verbose="true"
failOnRisky="true"
bootstrap="../Doctrine/Tests/TestInit.php"
>
<testsuites>
<testsuite name="Doctrine ORM Test Suite">
<directory>./../Doctrine/Tests/ORM</directory>