Repository navigation
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
60 lines (58 loc) · 2.36 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
60 lines (58 loc) · 2.36 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
<!--
Exclude framework boilerplate from coverage measurement.
- Providers/: Laravel service-provider register/boot wiring;
integration-tested implicitly when Testbench boots.
- Commands/: Artisan command classes; their behaviour is exercised
by the Feature suite (e.g. MakeIconPackageCommandTest).
- Jobs/, Listeners/: queue-dispatched payloads; tested by feature
tests that assert dispatch + side effects.
- View/: Blade x-component classes; tested by rendering the actual
view, not by instantiating the class directly.
- Facades/: thin accessor wrappers around container bindings.
Pure logic stays in coverage scope: Constants, Contracts, Data,
Drivers, Enums, Events, Exceptions, Models, Services, Support,
Traits, plus the root Ichava.php aggregator.
-->
<exclude>
<directory>src/Providers</directory>
<directory>src/Commands</directory>
<directory>src/Jobs</directory>
<directory>src/Listeners</directory>
<directory>src/View</directory>
<directory>src/Facades</directory>
</exclude>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="MAIL_MAILER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
</php>
</phpunit>