-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathphpunit.xml
More file actions
46 lines (42 loc) · 1.86 KB
/
Copy pathphpunit.xml
File metadata and controls
46 lines (42 loc) · 1.86 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Single source of truth for the unit suite, used by both CI and a local run.
The bootstrap points at Test/Unit/vendor/ because the test dependencies live in
the CI-only manifest Test/Unit/composer.json, NOT in the shipped root
composer.json, whose require block must stay empty: the committed root
composer.lock has a stale content-hash (it locks a package absent from require),
so adding require-dev there makes composer install refuse, and the regenerated
lock would ship in the Marketplace zip. Install the test deps with:
cd Test/Unit && composer install
Test/Unit/vendor is excluded from discovery because magento/framework ships its
own *Test.php files, and picking those up fatals on an undefined constant.
cacheDirectory lives under Test/Unit/ on purpose: build-adobe-zip.sh already
excludes Test/Unit/*, so the cache cannot leak into the Marketplace package.
At the repo root it did leak — verified.
-->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.net/10.5/phpunit.xsd"
bootstrap="Test/Unit/vendor/autoload.php"
colors="true"
cacheDirectory="Test/Unit/.phpunit.cache">
<testsuites>
<testsuite name="Paystack Unit Tests">
<directory>Test/Unit</directory>
<exclude>Test/Unit/vendor</exclude>
</testsuite>
</testsuites>
<source>
<include>
<directory>.</directory>
</include>
<exclude>
<directory>Test</directory>
<directory>dev</directory>
<directory>dev-ee</directory>
<directory>dev-repro</directory>
<directory>docs</directory>
<directory>marketplace</directory>
<directory>vendor</directory>
</exclude>
</source>
</phpunit>