-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpunit.xml
40 lines (40 loc) · 1.01 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
32
33
34
35
36
37
38
39
40
<phpunit
bootstrap="tests/phpunit/bootstrap.php"
backupGlobals="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<php>
<const
name="WP_TESTS_PHPUNIT_POLYFILLS_PATH"
value="vendor/yoast/phpunit-polyfills"
/>
<const
name="WP_TEST_ACTIVATED_PLUGINS"
value="wp-graphql/wp-graphql.php"
/>
</php>
<testsuites>
<testsuite name="unit">
<directory prefix="test-" suffix=".php">./tests/phpunit/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory>src/</directory>
<exclude>
<file>src/TestCase/WPGraphQLTestCase.php</file>
<file>src/Logger/CodeceptLogger.php</file>
<directory>src/Codeception</directory>
<directory>vendor/</directory>
<directory>local/</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="tests/phpunit/reports/clover.xml" />
</logging>
</phpunit>