-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpunit.xml
31 lines (31 loc) · 1.55 KB
/
phpunit.xml
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
<phpunit colors="true" bootstrap="vendor/autoload.php">
<filter>
<whitelist>
<!-- The name of the folder to use for code coverage -->
<directory suffix=".php">app/</directory>
<exclude>
<!-- Files/folders excluded from code coverage (PHP files without testable methods). Edit according to your project needs. -->
<directory suffix=".php">app/models</directory>
<directory suffix=".php">app/routes</directory>
</exclude>
</whitelist>
</filter>
<logging>
<!-- Types of testing logs -->
<log type="testdox-html" target="tests/build/testdox.html"/>
<log type="tap" target="tests/build/report.tap"/>
<log type="junit" target="tests/build/report.junit.xml"/>
<log type="coverage-html" target="tests/build/coverage"/>
<log type="coverage-text" target="tests/build/coverage.txt"/>
<log type="coverage-clover" target="tests/build/logs/clover.xml"/>
</logging>
<testsuites>
<testsuite name="sample-test-suite">
<!-- Directory where tests are stored -->
<directory suffix="Test.php">tests/unit/</directory>
<!-- By default, test files will be run in alphabetical file order. If you want to set a specific order of execution, define individual test files-->
<!-- <file>tests/unit/SampleTest.php</file> -->
<!-- Compiled code coverage results will be stored in the tests/build directory -->
</testsuite>
</testsuites>
</phpunit>