This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
forked from vanilla/vanilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpunit.xml.dist
115 lines (107 loc) · 5.2 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/phpunit.php"
>
<php>
<ini name="intl.default_locale" value="en"/>
<ini name="intl.error_level" value="0"/>
<ini name="memory_limit" value="-1"/>
<ini name="date.timezone" value="America/Montreal"/>
<const name="TESTMODE_ENABLED" value="true"/>
<env name="TEST_BASEURL" value="http://vanilla.test:8080" />
<env name="TEST_DB_NAME" value="vanilla_test"/>
<env name="TEST_DB_USER" value="circleci" />
<env name="TEST_DB_PASSWORD" value="" />
<env name="TEST_DB_HOST" value="127.0.0.1" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled=1"/>
</php>
<extensions>
<extension class="VanillaTests\StaticCleanupTestExtension"></extension>
</extensions>
<testsuites>
<testsuite name="All">
<directory suffix="Test.php">./tests/</directory>
<directory suffix="Test.php">./applications/*/tests</directory>
<directory suffix="Test.php">./plugins/*/tests</directory>
</testsuite>
<testsuite name="Library">
<directory suffix="Test.php">./tests/Library/</directory>
</testsuite>
<testsuite name="Formatting">
<directory suffix="Test.php">./tests/Library/Vanilla/Formatting</directory>
</testsuite>
<testsuite name="Scheduler">
<directory suffix="Test.php">./tests/Library/Vanilla/Scheduler</directory>
</testsuite>
<testsuite name="Models">
<directory suffix="Test.php">./tests/Models</directory>
<directory suffix="Test.php">./applications/*/tests/Models</directory>
<directory suffix="Test.php">./plugins/*/tests/Models</directory>
</testsuite>
<testsuite name="APIv0">
<directory suffix="Test.php">./tests/APIv0</directory>
</testsuite>
<testsuite name="APIv2">
<directory suffix="Test.php">./tests/APIv2</directory>
<directory suffix="Test.php">./applications/*/tests/APIv2</directory>
<directory suffix="Test.php">./plugins/*/tests/APIv2</directory>
</testsuite>
<testsuite name="ElasticSearch">
<directory suffix="Test.php">./plugins/ElasticSearch</directory>
</testsuite>
<testsuite name="Storybook">
<directory suffix="StorybookTest.php">./tests/</directory>
<directory suffix="StorybookTest.php">./applications/*/tests</directory>
<directory suffix="StorybookTest.php">./plugins/*/tests</directory>
</testsuite>
</testsuites>
<filter>
<!-- Setting this to true would give us "truer" coverage, but it causes all kinds of issues with actual coverage reporting -->
<!-- This is because of how we parallelize and split out tests. -->
<!-- If you want to see real coverage locally, I recommend setting this to true. -->
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix=".php">applications/dashboard</directory>
<directory suffix=".php">applications/vanilla</directory>
<directory suffix=".php">applications/conversations</directory>
<directory suffix=".php">applications/groups</directory>
<directory suffix=".php">library</directory>
<directory suffix=".php">plugins/ProfileExtender</directory>
<directory suffix=".php">plugins/QnA</directory>
<directory suffix=".php">plugins/Reactions</directory>
<directory suffix=".php">plugins/rich-editor</directory>
<exclude>
<directory suffix=".php">applications/dashboard/tests</directory>
<directory suffix=".php">applications/dashboard/views</directory>
<directory suffix=".php">applications/vanilla/tests</directory>
<directory suffix=".php">applications/vanilla/views</directory>
<directory suffix=".php">applications/conversations/tests</directory>
<directory suffix=".php">applications/conversations/views</directory>
<directory suffix=".php">plugins/QnA/views</directory>
<directory suffix=".php">plugins/ProfileExtender/views</directory>
<directory suffix=".php">plugins/Reactions/views</directory>
<directory suffix=".php">library/deprecated</directory>
</exclude>
</whitelist>
</filter>
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
<arguments>
<array>
<element key="slowThreshold">
<integer>2000</integer>
</element>
<element key="reportLength">
<integer>30</integer>
</element>
</array>
</arguments>
</listener>
</listeners>
</phpunit>