0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-03-25 09:25:40 +00:00
kevinpapst_kimai2/phpunit.xml.dist

77 lines
3.1 KiB
Text
Raw Normal View History

2016-10-20 22:10:41 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2018-01-12 20:39:07 +01:00
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
2016-10-20 22:10:41 +02:00
backupGlobals="false"
colors="true"
2021-03-08 16:06:22 +01:00
bootstrap="tests/bootstrap.php"
2016-10-20 22:10:41 +02:00
>
<php>
<ini name="error_reporting" value="-1" />
2020-02-04 15:29:26 +01:00
<ini name="max_execution_time" value="-1" />
2018-06-21 22:44:32 +02:00
<ini name="intl.default_locale" value="en_US" />
2018-07-21 22:36:36 +02:00
<env name="KERNEL_CLASS" value="App\Kernel" force="true"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
<env name="APP_ENV" value="test" force="true"/>
<env name="APP_DEBUG" value="1" force="true"/>
<env name="APP_SECRET" value="5a79a1c866efef9ca1800f971d689f3e" force="true"/>
2021-03-08 16:06:22 +01:00
<!--
CREATE DATABASE IF NOT EXISTS `kimai2_test`;
CREATE USER IF NOT EXISTS `kimai2_test`@127.0.0.1;
ALTER USER `kimai2_test`@127.0.0.1 IDENTIFIED BY "kimai2_test";
GRANT execute,select,insert,update,delete,create,alter,drop,index,references ON `kimai2_test`.* TO kimai2_test@127.0.0.1;
-->
<env name="DATABASE_URL" value="mysql://kimai2_test:kimai2_test@127.0.0.1:3306/kimai2_test"/>
<env name="CORS_ALLOW_ORIGIN" value="^https?://localhost(:[0-9]+)?$"/>
<env name="MAILER_URL" value="null://null"/>
2021-03-08 16:06:22 +01:00
<!--
REINSTALL THE TEST DATABASE, AFTER CHANGING STRUCTURE?
Simple:
- change to "true"
- composer tests
- change back to "false"
-->
<env name="BOOTSTRAP_RESET_DATABASE" value="true"/>
2016-10-20 22:10:41 +02:00
</php>
<testsuites>
<testsuite name="Kimai">
2018-01-12 20:39:07 +01:00
<directory>tests/</directory>
2016-10-20 22:10:41 +02:00
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
<directory suffix=".php">templates/</directory>
<exclude>
<directory suffix=".php">src/Migrations/</directory>
2018-07-21 22:36:36 +02:00
<directory suffix=".php">assets/</directory>
<directory suffix=".php">bin/</directory>
<directory suffix=".php">config/</directory>
<directory suffix=".php">node_modules/</directory>
2018-06-08 00:16:12 +02:00
<directory suffix=".php">public/</directory>
<directory suffix=".php">tests/</directory>
2018-07-21 22:36:36 +02:00
<directory suffix=".php">translations/</directory>
2018-06-08 00:16:12 +02:00
<directory suffix=".php">var/</directory>
<directory suffix=".php">vendor/</directory>
</exclude>
</whitelist>
</filter>
2020-02-04 15:29:26 +01:00
<!--
begins a database transaction before every testcase and rolls it back after the test finished, so
tests can manipulate the database without affecting other tests
@see https://github.com/dmaicher/doctrine-test-bundle
-->
<extensions>
<extension class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
</extensions>
2018-01-12 20:39:07 +01:00
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
2018-01-12 20:39:07 +01:00
</listeners>
</phpunit>