Skip to content

Commit

Permalink
fix: exclude arch test from test
Browse files Browse the repository at this point in the history
  • Loading branch information
zembrowski committed Nov 7, 2024
1 parent caec6f3 commit 4f776e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
12 changes: 8 additions & 4 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit 4f776e5

Please sign in to comment.