forked from LibreBooking/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
73 lines (64 loc) · 2.71 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- doc: https://phpunit.readthedocs.io/en/latest/configuration.html -->
<!-- manpage: https://manpages.debian.org/testing/phpunit/phpunit.1.en.html -->
<phpunit bootstrap = "./tests/autoload.php"
backupGlobals = "false"
backupStaticAttributes = "false"
colors = "true"
convertErrorsToExceptions = "true"
convertNoticesToExceptions = "true"
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "false"
cacheResultFile = "./var/cache/.phpunit.result.cache"
verbose = "false"
defaultTestSuite = "all"
>
<!-- organizing tests: https://phpunit.readthedocs.io/en/latest/organizing-tests.html -->
<testsuites>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html#the-testsuite-element -->
<!-- run only specificed tests: 'phpunit -_-filter [path/to/*Test.php / folder with tests]' -->
<!-- run only a specific testsuite: 'phpunit -_-testsuite <testsuite-name>' -->
<testsuite name="all">
<directory>./tests</directory>
</testsuite>
<testsuite name="application">
<directory>./tests/Application</directory>
</testsuite>
<testsuite name="domain">
<directory>./tests/Domain</directory>
</testsuite>
<testsuite name="plugins">
<directory>./tests/Plugins</directory>
</testsuite>
<testsuite name="presenters">
<directory>./tests/Presenters</directory>
</testsuite>
<testsuite name="webservice">
<directory>./tests/WebService</directory>
</testsuite>
<testsuite name="webservices">
<directory>./tests/WebServices</directory>
</testsuite>
</testsuites>
<!-- to generate coverage report: phpunit -_-coverage-html ./var/ -->
<coverage cacheDirectory="./var/cache/phpunit">
<include>
<directory suffix=".php">Controls</directory>
<directory suffix=".php">Domain</directory>
<directory suffix=".php">Jobs</directory>
<directory suffix=".php">lib</directory>
<directory suffix=".php">Pages</directory>
<directory suffix=".php">Plugins</directory>
<directory suffix=".php">Presenters</directory>
<directory suffix=".php">Web</directory>
<directory suffix=".php">WebServices</directory>
</include>
<exclude>
<directory suffix=".php">lib/external</directory>
</exclude>
</coverage>
<php>
<env name="APP_ENV" value="testing"/>
</php>
</phpunit>