Skip to content

Commit 3afa888

Browse files
committed
:octocat: added group tag for sloww tests
1 parent c4314d6 commit 3afa888

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

phpunit.xml.dist

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
colors="true"
77
verbose="true"
88
>
9+
<testsuites>
10+
<testsuite name="php-qrcode test suite">
11+
<directory suffix=".php">./tests/</directory>
12+
</testsuite>
13+
</testsuites>
914
<coverage processUncoveredFiles="true">
1015
<include>
1116
<directory suffix=".php">./src</directory>
@@ -15,16 +20,18 @@
1520
<xml outputDirectory=".build/coverage/coverage-xml"/>
1621
</report>
1722
</coverage>
18-
<testsuites>
19-
<testsuite name="php-qrcode test suite">
20-
<directory suffix=".php">./tests/</directory>
21-
</testsuite>
22-
</testsuites>
2323
<logging>
2424
<junit outputFile=".build/logs/junit.xml"/>
2525
</logging>
26+
<!--
27+
<groups>
28+
<exclude>
29+
<group>slow</group>
30+
</exclude>
31+
</groups>
32+
-->
2633
<php>
27-
<!-- whether the test runs on CI or not - set to false to allow debug output -->
34+
<!-- whether the test runs on CI - set to false to allow debug output -->
2835
<const name="TEST_IS_CI" value="true"/>
2936
</php>
3037
</phpunit>

tests/Data/HanziTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public static function hanziProvider():Generator{
5858
}
5959

6060
/**
61+
* @group slow
6162
* @dataProvider hanziProvider
6263
*/
6364
public function testValidateGB2312(string $chr):void{

tests/Data/KanjiTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public static function kanjiProvider():Generator{
7777
}
7878

7979
/**
80+
* @group slow
8081
* @dataProvider kanjiProvider
8182
*/
8283
public function testValidateSJIS(string $chr):void{

tests/QRCodeReaderTestAbstract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public static function qrCodeProvider():array{
7272
}
7373

7474
/**
75+
* @group slow
7576
* @dataProvider qrCodeProvider
7677
*/
7778
public function testReader(string $img, string $expected, bool $grayscale):void{
@@ -131,6 +132,7 @@ public static function dataTestProvider():Generator{
131132
}
132133

133134
/**
135+
* @group slow
134136
* @dataProvider dataTestProvider
135137
*/
136138
public function testReadData(Version $version, EccLevel $ecc, string $expected):void{

0 commit comments

Comments
 (0)