forked from contao/contao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpunit.xml.dist
82 lines (77 loc) · 3.8 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/8.4/phpunit.xsd"
colors="true"
defaultTestSuite="unit"
bootstrap="vendor/autoload.php"
>
<php>
<ini name="error_reporting" value="-1" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0" />
<env name="KERNEL_CLASS" value="Contao\CoreBundle\Tests\Functional\app\AppKernel" />
<env name="APP_SECRET" value="foobar" />
<env name="DATABASE_URL" value="mysql://root@localhost:3306/contao_test" />
</php>
<testsuites>
<testsuite name="unit">
<directory>./*-bundle/tests</directory>
<exclude>./*-bundle/tests/Fixtures</exclude>
<exclude>./*-bundle/tests/Functional</exclude>
</testsuite>
<testsuite name="functional">
<directory>./core-bundle/tests/Functional</directory>
<exclude>./core-bundle/tests/Functional/app</exclude>
</testsuite>
<testsuite name="coverage">
<directory>./*-bundle/tests</directory>
<exclude>./*-bundle/tests/Fixtures</exclude>
<exclude>./core-bundle/tests/Contao</exclude>
<exclude>./core-bundle/tests/Functional</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./calendar-bundle/src</directory>
<directory>./core-bundle/src</directory>
<directory>./faq-bundle/src</directory>
<directory>./manager-bundle/src</directory>
<directory>./news-bundle/src</directory>
<exclude>
<directory>./calendar-bundle/src/Resources</directory>
<directory>./core-bundle/src/Resources</directory>
<directory>./faq-bundle/src/Resources</directory>
<directory>./manager-bundle/src/Resources</directory>
<directory>./news-bundle/src/Resources</directory>
<!-- exclude resources that are exempt from testing -->
<directory>./*-bundle/src/Entity</directory>
<directory>./*-bundle/src/Migration/Version*</directory>
<!-- exclude files with symbols and side-effects -->
<file>./core-bundle/src/EventListener/UserAwareTrait.php</file>
<file>./core-bundle/src/Exception/ServiceUnavailableException.php</file>
<file>./core-bundle/src/Framework/ScopeAwareTrait.php</file>
</exclude>
</whitelist>
</filter>
<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
<arguments>
<array>
<element key="time-sensitive">
<array>
<element key="0"><string>Contao\CoreBundle\Command</string></element>
<element key="1"><string>Contao\CoreBundle\Tests\Command</string></element>
<element key="2"><string>Contao\CoreBundle\Cron\Command</string></element>
<element key="3"><string>Contao\CoreBundle\Tests\Cron</string></element>
<element key="4"><string>Contao\CoreBundle\Security\Authentication\Provider</string></element>
<element key="5"><string>Contao\CoreBundle\Tests\Security\Authentication\Provider</string></element>
</array>
</element>
</array>
</arguments>
</listener>
</listeners>
<extensions>
<extension class="Contao\CoreBundle\Tests\PhpunitExtension\DeprecatedClasses"/>
<extension class="Contao\ManagerBundle\Tests\PhpunitExtension\DeprecatedClasses"/>
</extensions>
</phpunit>