-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpunit.xml.dist
63 lines (62 loc) · 2.39 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Note: When backupGlobals is set to true, phpunit ends up trying to restore
the DB connection to its initial state, i.e. an unconnected state.
This causes some mysqli errors, because Tiki libraries never expect
to have to reconnect to the DB.
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="lib/test/bootstrap.php"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
displayDetailsOnTestsThatTriggerWarnings="true"
colors="true"
stopOnFailure="false"
backupGlobals="false"
stopOnRisky="false"
cacheResultFile="temp/cache">
<source>
<include>
<directory suffix=".php">./lib</directory>
</include>
<exclude>
<directory suffix=".php">lib/test</directory>
<directory suffix="index.php">./</directory>
</exclude>
</source>
<testsuites>
<testsuite name="Tiki test suite">
<directory>./lib/test</directory>
<!-- Exclude files where all tests are marked as skipped -->
<exclude>./lib/test/AcceptanceTests/</exclude>
<exclude>./lib/test/core/Reports/ReportsEndToEndTest.php</exclude>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>disable</group>
<group>marked-as-skipped</group>
<group>marked-as-incomplete</group>
<!-- require pref lang_google_api_key -->
<group>GoogleTranslate</group>
<group>RequiresWebserver</group>
</exclude>
</groups>
<php>
<ini name="memory_limit" value="-1"/>
<ini name="date.timezone" value="UTC"/>
</php>
<logging>
<junit outputFile="temp/phpunit.junit.xml"/>
<!--
Coverage analysis more than double the time to run tests.
Instead of enabling this, on the build server, use:
1. Setup phpStorm integration http://dev.tiki.org/PhpStorm?latest=1#Set_up_PHPUnit_in_Run_Debug_Config
2. Run from the command line with with the option: coverage-clover temp/clover.xml
Note that you will need php-xdebug installed to run it.
<log type="coverage-clover" target="temp/clover.xml" />
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false" showOnlySummary="true" />
-->
</logging>
</phpunit>