|
16 | 16 | "require-dev": {
|
17 | 17 | "squizlabs/php_codesniffer": "3.10.3",
|
18 | 18 | "wp-coding-standards/wpcs": "~3.1.0",
|
19 |
| - "yoast/phpunit-polyfills": "^1.1.0" |
| 19 | + "yoast/phpunit-polyfills": "^1.1.0", |
| 20 | + "nimut/phpunit-merger": "^2.0" |
20 | 21 | },
|
21 | 22 | "config": {
|
22 | 23 | "allow-plugins": {
|
|
32 | 33 | ],
|
33 | 34 | "test:multisite": [
|
34 | 35 | "Composer\\Config::disableProcessTimeout",
|
35 |
| - "@php ./vendor/phpunit/phpunit/phpunit -c tests/multisite.xml" |
| 36 | + "@php ./vendor/phpunit/phpunit/phpunit -c tests/phpunit/multisite.xml" |
| 37 | + ], |
| 38 | + "coverage:merge": [ |
| 39 | + "Composer\\Config::disableProcessTimeout", |
| 40 | + "@putenv XDEBUG_MODE=coverage", |
| 41 | + "@php ./vendor/bin/phpunit-merger coverage tests/phpunit/coverage/php --html tests/phpunit/coverage/html/full tests/phpunit/cache/full-cache.xml" |
| 42 | + ], |
| 43 | + "coverage:single": [ |
| 44 | + "Composer\\Config::disableProcessTimeout", |
| 45 | + "@putenv XDEBUG_MODE=off", |
| 46 | + "@putenv WP_TESTS_SKIP_INSTALL=0", |
| 47 | + "@test --filter prime_test_suite", |
| 48 | + "@putenv XDEBUG_MODE=coverage", |
| 49 | + "@putenv WP_TESTS_SKIP_INSTALL=1", |
| 50 | + "@test" |
| 51 | + ], |
| 52 | + "coverage:multisite": [ |
| 53 | + "Composer\\Config::disableProcessTimeout", |
| 54 | + "@putenv XDEBUG_MODE=off", |
| 55 | + "@putenv WP_TESTS_SKIP_INSTALL=0", |
| 56 | + "@test:multisite --filter prime_test_suite", |
| 57 | + "@putenv XDEBUG_MODE=coverage", |
| 58 | + "@putenv WP_TESTS_SKIP_INSTALL=1", |
| 59 | + "@test:multisite" |
| 60 | + ], |
| 61 | + "coverage:full": [ |
| 62 | + "Composer\\Config::disableProcessTimeout", |
| 63 | + "@coverage:single", |
| 64 | + "@coverage:multisite", |
| 65 | + "@coverage:merge" |
36 | 66 | ]
|
37 | 67 | }
|
38 | 68 | }
|
0 commit comments