Skip to content

Commit 0b09158

Browse files
committed
Add phpunit.xml.dist for unit tests
1 parent 7380766 commit 0b09158

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.travis/before_script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ case $TEST_SUITE in
5454

5555
cd ../../..
5656
;;
57+
unit)
58+
cp vendor/$COMPOSER_PACKAGE_NAME/tests/unit/phpunit.xml.dist dev/tests/unit/phpunit.xml
59+
;;
5760
esac

tests/unit/phpunit.xml.dist

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.1/phpunit.xsd"
10+
colors="true"
11+
columns="max"
12+
beStrictAboutTestsThatDoNotTestAnything="false"
13+
bootstrap="./framework/bootstrap.php"
14+
>
15+
<testsuites>
16+
<testsuite name="IntegerNet_RewriteMap Integration Tests">
17+
<directory>../../../vendor/integer-net/magento2-rewritemap/tests/unit</directory>
18+
</testsuite>
19+
</testsuites>
20+
<php>
21+
<ini name="date.timezone" value="America/Los_Angeles"/>
22+
<ini name="xdebug.max_nesting_level" value="200"/>
23+
</php>
24+
<filter>
25+
<whitelist>
26+
<directory suffix=".php">../../../app/code/*</directory>
27+
<directory suffix=".php">../../../lib/internal/Magento</directory>
28+
<directory suffix=".php">../../../setup/src/*</directory>
29+
<exclude>
30+
<directory>../../../app/code/*/*/Test</directory>
31+
<directory>../../../lib/internal/*/*/Test</directory>
32+
<directory>../../../lib/internal/*/*/*/Test</directory>
33+
<directory>../../../setup/src/*/*/Test</directory>
34+
</exclude>
35+
</whitelist>
36+
</filter>
37+
<listeners>
38+
<listener class="Yandex\Allure\Adapter\AllureAdapter">
39+
<arguments>
40+
<string>var/allure-results</string> <!-- XML files output directory -->
41+
<boolean>true</boolean> <!-- Whether to delete previous results on rerun -->
42+
<array> <!-- A list of custom annotations to ignore (optional) -->
43+
<element key="codingStandardsIgnoreStart">
44+
<string>codingStandardsIgnoreStart</string>
45+
</element>
46+
<element key="codingStandardsIgnoreEnd">
47+
<string>codingStandardsIgnoreEnd</string>
48+
</element>
49+
<element key="cover">
50+
<string>cover</string>
51+
</element>
52+
<element key="expectedExceptionMessageRegExp">
53+
<string>expectedExceptionMessageRegExp</string>
54+
</element>
55+
</array>
56+
</arguments>
57+
</listener>
58+
<listener class="Magento\Framework\TestFramework\Unit\Listener\ReplaceObjectManager"/>
59+
</listeners>
60+
</phpunit>

0 commit comments

Comments
 (0)