-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
50 lines (46 loc) · 2.13 KB
/
phpunit.xml.dist
File metadata and controls
50 lines (46 loc) · 2.13 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
<!--@see: https://github.com/wp-phpunit/docs to configuration project for wp phpunit testing-->
<phpunit
bootstrap="./packages/dev-phpunit/php/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
verbose="true"
>
<coverage>
<report>
<html outputDirectory="php-coverage" />
</report>
</coverage>
<testsuites>
<testsuite name="units">
<directory suffix=".php">./packages/dev-phpunit/php/</directory>
<directory suffix=".php">./packages/blockera/php/tests/</directory>
<directory suffix=".php">./packages/blockera-admin/php/tests/</directory>
<directory suffix=".php">./packages/data/php/tests/</directory>
<directory suffix=".php">./packages/editor/php/tests/</directory>
<directory suffix=".php">./packages/wordpress/php/tests/</directory>
<directory suffix=".php">./packages/utils/php/tests/</directory>
<exclude>./node_modules/</exclude>
<exclude>./dist/</exclude>
<exclude>./packages/blockera/php/tests/Fixtures/</exclude>
<exclude>./packages/editor/php/tests/Fixtures/</exclude>
</testsuite>
<testsuite name="snapshots">
<directory suffix=".php">./packages/dev-phpunit/php/</directory>
<directory suffix=".php">./tests/phpunit/main/</directory>
<exclude>./node_modules/</exclude>
<exclude>./dist/</exclude>
<exclude>./packages/blockera/php/tests/Fixtures/</exclude>
<exclude>./packages/editor/php/tests/Fixtures/</exclude>
</testsuite>
</testsuites>
<php>
<env name="VERSION" value="1.0-beta" />
<const name="PHPUNIT_PLUGIN_TEST" value="true"/>
<env name="__BLOCKERA_DIR__" value="blockera" />
<env name="WP_PHPUNIT__TESTS_CONFIG" value="./packages/dev-phpunit/php/config.php" />
<env name="WP_TESTS_CONFIG_FILE_PATH" value="./packages/dev-phpunit/php/config.php" />
</php>
</phpunit>