Skip to content

Commit 5fbf7e2

Browse files
committed
Add phpunit.xml
1 parent b8a4cb0 commit 5fbf7e2

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

.zed/settings.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"scripts": {
3434
"lint": "@php ./vendor/bin/pint",
3535
"static": "@php ./vendor/bin/phpstan analyse",
36-
"test-unit": "@php ./vendor/bin/pest --colors=always --coverage --min=90 tests/Unit",
36+
"test-unit": "@php ./vendor/bin/pest --coverage --min=90 tests/Unit",
3737
"check": [
3838
"@lint",
3939
"@static",

phpunit.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
>
7+
<testsuites>
8+
<testsuite name="Test Suite">
9+
<directory suffix="Test.php">./tests</directory>
10+
</testsuite>
11+
</testsuites>
12+
<source>
13+
<include>
14+
<directory suffix=".php">./app</directory>
15+
<directory suffix=".php">./src</directory>
16+
</include>
17+
</source>
18+
</phpunit>

tests/laravel/laravel-version-test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
file_put_contents(TEST_PATH.'composer.json', json_encode($composerConfig, JSON_PRETTY_PRINT));
2424

2525
exec('composer update');
26-
passthru('php ./vendor/bin/pest --colors=always', $resultCode);
26+
passthru('php ./vendor/bin/pest --coverage --min=100', $resultCode);
2727

2828
if ($resultCode !== 0) {
2929
echo "\n\nTests failed for Laravel {$laravelVersion}\n";

0 commit comments

Comments
 (0)