-
Notifications
You must be signed in to change notification settings - Fork 8
/
phpunit.xml.dist
41 lines (37 loc) · 1.18 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
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
cacheResultFile="./tests/.phpunit.result.cache"
>
<php>
<const name="WP_TESTS_MULTISITE" value="1" />
</php>
<testsuites>
<testsuite name="wporg-two-factor">
<directory prefix="test-" suffix=".php">
./tests/
</directory>
</testsuite>
</testsuites>
<!--
== Because this is a security plugin, the goal for coverage is 100% for code that is testable and worth
== testing. It's not worth refactoring gymnastics to make everything testable, though, and some things
== just aren't important. @codeCoverageIgnore should be used liberally to indicate when a function is
== not worth testing, because that ensures that the coverage % remains meaningful and only reflects
== the code that we're trying to test.
-->
<coverage processUncoveredFiles="false">
<include>
<file>wporg-two-factor.php</file>
<file>settings/settings.php</file>
<file>settings/rest-api.php</file>
</include>
<report>
<html outputDirectory="./tests/coverage" />
</report>
</coverage>
</phpunit>