Merged PostgreSQL and MySQL tests inti one PHPUnit XML config.
This commit is contained in:
parent
27f381982a
commit
8d0d23f5f4
9 changed files with 126 additions and 89 deletions
64
phpunit.xml
Normal file
64
phpunit.xml
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<phpunit
|
||||
backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="false"
|
||||
syntaxCheck="false"
|
||||
bootstrap="./tests/bootstrap.php"
|
||||
>
|
||||
<php>
|
||||
<env name="MYSQL_USER" value="root" />
|
||||
<env name="MYSQL_PASSWORD" value="" />
|
||||
<env name="MYSQL_DBNAME" value="b8_test" />
|
||||
<env name="POSTGRESQL_USER" value="postgres" />
|
||||
<env name="POSTGRESQL_PASSWORD" value="" />
|
||||
<env name="POSTGRESQL_DBNAME" value="b8_test" />
|
||||
</php>
|
||||
<testsuites>
|
||||
<testsuite name="B8Framework Test Suite">
|
||||
<directory suffix="Test.php">./tests/B8Framework</directory>
|
||||
</testsuite>
|
||||
|
||||
<testsuite name="PHP Censor Helper Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Helper</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor Controller Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Controller</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor Logging Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Logging</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor Model Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Model</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor Plugin Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Plugin</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor Service Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Service</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor Command Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Command</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor ProcessControl Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/ProcessControl</directory>
|
||||
</testsuite>
|
||||
<testsuite name="PHP Censor Security Test Suite">
|
||||
<directory suffix="Test.php">./tests/PHPCensor/Security</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./src</directory>
|
||||
<exclude>
|
||||
<directory suffix=".php">./src/PHPCensor/Migrations</directory>
|
||||
<directory suffix=".php">./src/PHPCensor/Languages</directory>
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
Loading…
Add table
Add a link
Reference in a new issue