aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit.xml.dist
blob: 7b9c1d563e46d9c6188835eb64749a8f0f67a239 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.0/phpunit.xsd"
         bootstrap="../boot.php"
         forceCoversAnnotation="false"
         beStrictAboutCoversAnnotation="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutTodoAnnotatedTests="true"
         verbose="true">
    <testsuite name="Hubzilla default Test Suite">
        <directory suffix="Test.php">./unit/</directory>
    </testsuite>
    <testsuite name="API Test Suite">
        <directory suffix="Test.php" prefix="API">./unit/</directory>
    </testsuite>
    <testsuite name="Ex-/Import Test Suite">
        <!--<directory suffix="Test.php">./unit/eximport/</directory>-->
    </testsuite>
    <groups>
        <exclude>
            <group>postgresql</group>
        </exclude>
    </groups>
    <!--cover reporting-->
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">../Zotlabs/</directory>
            <directory suffix=".php">../include/</directory>
        </whitelist>
    </filter>
    <logging>
        <log type="junit" target="./results/junit.xml" logIncompleteSkipped="false"/>
        <log type="coverage-clover" target="./results/coverage-clover.xml"/>
        <log type="coverage-html" target="./results/coverage-report/" lowUpperBound="35"
        highLowerBound="70"/>
        <log type="testdox-text" target="./results/testdox.txt"/>
    </logging>
    <php>
        <!-- default test database config, only used if no environment variables
             with same name set -->
        <env name="hz_db_server" value="127.0.0.1"/>
        <env name="hz_db_scheme" value="mysql"/>
        <env name="hz_db_port" value="3306"/>
        <env name="hz_db_user" value="hubzilla"/>
        <env name="hz_db_pass" value="hubzilla"/>
        <env name="hz_db_database" value="hubzilla"/>
    </php>
</phpunit>