Skip to content

Commit 9a119b1

Browse files
Add more test tasks (#67)
This adds 4 new tasks: - run all phpunit tests in the current file - run all phpunit tests - run all pest tests in the current file - run all pest tests
1 parent 9c64e40 commit 9a119b1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

languages/php/tasks.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,36 @@
55
"args": ["--filter", "\"$ZED_SYMBOL\"", "$ZED_FILE"],
66
"tags": ["phpunit-test"]
77
},
8+
{
9+
"label": "phpunit test $ZED_FILENAME",
10+
"command": "./vendor/bin/phpunit",
11+
"args": ["$ZED_FILE"],
12+
"tags": ["phpunit-test"]
13+
},
14+
{
15+
"label": "phpunit run all tests",
16+
"command": "./vendor/bin/phpunit",
17+
"args": [],
18+
"tags": ["phpunit-test"]
19+
},
820
{
921
"label": "pest test $ZED_SYMBOL",
1022
"command": "./vendor/bin/pest",
1123
"args": ["--filter", "\"$ZED_SYMBOL\"", "$ZED_FILE"],
1224
"tags": ["pest-test"]
1325
},
26+
{
27+
"label": "pest test $ZED_FILENAME",
28+
"command": "./vendor/bin/pest",
29+
"args": ["$ZED_FILE"],
30+
"tags": ["pest-test"]
31+
},
32+
{
33+
"label": "pest run all tests",
34+
"command": "./vendor/bin/pest",
35+
"args": [],
36+
"tags": ["pest-test"]
37+
},
1438
{
1539
"label": "execute selection $ZED_SELECTED_TEXT",
1640
"command": "php",

0 commit comments

Comments
 (0)