Skip to content

Commit c3649fc

Browse files
Generate tests configuration
1 parent 96ab90b commit c3649fc

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
run: composer update
3030

3131
- name: Execute tests
32-
run: vendor/bin/pest
32+
run: composer test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/.idea
22
/.vscode
33

4+
/.phpunit.cache
5+
46
/vendor
57

68
.env

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,10 @@
7070
},
7171
"extra": {
7272
"bin-dir": "bin"
73+
},
74+
"scripts": {
75+
"test": [
76+
"@php vendor/bin/pest --compact"
77+
]
7378
}
7479
}

phpunit.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
cacheDirectory=".phpunit.cache"
6+
executionOrder="depends,defects"
7+
failOnRisky="true"
8+
>
9+
<testsuites>
10+
<testsuite name="default">
11+
<directory>tests</directory>
12+
</testsuite>
13+
</testsuites>
14+
15+
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
16+
<include>
17+
<directory>app</directory>
18+
</include>
19+
</source>
20+
</phpunit>

0 commit comments

Comments
 (0)