From 4f776e595026358c9d98aad9ad52dc1d64d44f5d Mon Sep 17 00:00:00 2001 From: Krzysztof Tomasz Zembrowski Date: Thu, 7 Nov 2024 17:33:01 +0100 Subject: [PATCH] fix: exclude arch test from test --- composer.json | 4 +++- tests/ArchTest.php | 12 ++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 9d65447..f260b39 100644 --- a/composer.json +++ b/composer.json @@ -43,16 +43,18 @@ }, "scripts": { "analyse": "vendor/bin/phpstan analyse", + "arch": "vendor/bin/pest --group=arch", "coverage": "vendor/bin/pest --coverage --min=98", "format": "vendor/bin/pint", "quality": [ + "@arch", "@format", "@test", "@analyse", "@types", "@coverage" ], - "test": "vendor/bin/pest --exclude-group=manual", + "test": "vendor/bin/pest --exclude-group=manual --exclude-group=arch", "types": "vendor/bin/pest --type-coverage --min=100" }, "config": { diff --git a/tests/ArchTest.php b/tests/ArchTest.php index f8853b7..b186b82 100644 --- a/tests/ArchTest.php +++ b/tests/ArchTest.php @@ -2,16 +2,20 @@ test('will not use debugging functions') ->expect(['dd', 'dump', 'ray', 'var_dump', 'echo', 'print_r']) - ->not->toBeUsed(); + ->not->toBeUsed() + ->group('arch'); test('dtos are final') ->expect('Rechtlogisch\Steuernummer\Dto') - ->toBeFinal(); + ->toBeFinal() + ->group('arch'); test('abstracts are abstract') ->expect('Rechtlogisch\Steuernummer\Abstracts') - ->toBeAbstract(); + ->toBeAbstract() + ->group('arch'); test('use strict mode') ->expect('Rechtlogisch\Steuernummer') - ->toUseStrictTypes(); + ->toUseStrictTypes() + ->group('arch');