From 3afa8881803fadf39d801020a8ada485230bd429 Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 16 Mar 2023 17:43:09 +0100 Subject: [PATCH] :octocat: added group tag for sloww tests --- phpunit.xml.dist | 19 +++++++++++++------ tests/Data/HanziTest.php | 1 + tests/Data/KanjiTest.php | 1 + tests/QRCodeReaderTestAbstract.php | 2 ++ 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 848e0a1c2..93fb5da40 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -6,6 +6,11 @@ colors="true" verbose="true" > + + + ./tests/ + + ./src @@ -15,16 +20,18 @@ - - - ./tests/ - - + - + diff --git a/tests/Data/HanziTest.php b/tests/Data/HanziTest.php index ed01dde42..bbd11ce03 100644 --- a/tests/Data/HanziTest.php +++ b/tests/Data/HanziTest.php @@ -58,6 +58,7 @@ final class HanziTest extends DataInterfaceTestAbstract{ } /** + * @group slow * @dataProvider hanziProvider */ public function testValidateGB2312(string $chr):void{ diff --git a/tests/Data/KanjiTest.php b/tests/Data/KanjiTest.php index 8a664e20c..a366f27ea 100644 --- a/tests/Data/KanjiTest.php +++ b/tests/Data/KanjiTest.php @@ -77,6 +77,7 @@ final class KanjiTest extends DataInterfaceTestAbstract{ } /** + * @group slow * @dataProvider kanjiProvider */ public function testValidateSJIS(string $chr):void{ diff --git a/tests/QRCodeReaderTestAbstract.php b/tests/QRCodeReaderTestAbstract.php index 74fb565b3..eed2f01c4 100644 --- a/tests/QRCodeReaderTestAbstract.php +++ b/tests/QRCodeReaderTestAbstract.php @@ -72,6 +72,7 @@ abstract class QRCodeReaderTestAbstract extends TestCase{ } /** + * @group slow * @dataProvider qrCodeProvider */ public function testReader(string $img, string $expected, bool $grayscale):void{ @@ -131,6 +132,7 @@ abstract class QRCodeReaderTestAbstract extends TestCase{ } /** + * @group slow * @dataProvider dataTestProvider */ public function testReadData(Version $version, EccLevel $ecc, string $expected):void{