Skip to content

Commit 72c68aa

Browse files
committed
test: tweak some VSCode tasks for testing
1 parent d95931e commit 72c68aa

File tree

1 file changed

+11
-37
lines changed

1 file changed

+11
-37
lines changed

.vscode/tasks.json

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@
1515
"label": "(vscode) sleep",
1616
"group": "test",
1717
"command": "sleep",
18-
"args": [
19-
"10"
20-
]
18+
"args": ["10"]
2119
},
2220
{
2321
"type": "process",
2422
"label": "(vscode) test file",
2523
"group": "test",
2624
"command": "./run_tests.sh",
27-
"args": [
28-
"${file}"
29-
],
25+
"args": ["${file}"],
3026
"presentation": {
3127
"reveal": "always"
3228
}
@@ -36,18 +32,15 @@
3632
"label": "(vscode) prompt input",
3733
"group": "test",
3834
"command": "echo",
39-
"args": [
40-
"${input:word}",
41-
"${input:position}"
42-
]
35+
"args": ["${input:word}", "${input:position}"]
4336
},
4437
{
4538
"type": "process",
4639
"label": "(vscode) background",
4740
"command": "./tests/fake_background_task.sh",
4841
"isBackground": true,
4942
"presentation": {
50-
"revealProblems": "onProblem",
43+
"revealProblems": "onProblem"
5144
},
5245
"problemMatcher": {
5346
"pattern": {
@@ -64,27 +57,13 @@
6457
},
6558
{
6659
"label": "(vscode) compound parallel",
67-
"dependsOn": [
68-
"(vscode) test",
69-
"(vscode) sleep"
70-
]
71-
},
72-
{
73-
"label": "(vscode) compound sequence",
74-
"dependsOn": [
75-
"(vscode) sleep",
76-
"(vscode) test",
77-
"(vscode) prompt input"
78-
],
79-
"dependsOrder": "sequence"
60+
"dependsOn": ["(vscode) test", "(vscode) sleep"]
8061
},
8162
{
8263
"type": "shell",
8364
"label": "(vscode) create/move/delete",
8465
"command": "rm",
85-
"args": [
86-
"vscode_moved_test_file.txt"
87-
],
66+
"args": ["vscode_moved_test_file.txt"],
8867
"dependsOn": "(vscode) move"
8968
},
9069
{
@@ -100,25 +79,24 @@
10079
},
10180
{
10281
"label": "Build/Test/Serve pipeline",
103-
"dependsOn": [
104-
"make build",
105-
"run tests",
106-
"run webserver"
107-
],
82+
"dependsOn": ["make build", "run tests", "run webserver"],
10883
"dependsOrder": "sequence"
10984
},
11085
{
11186
"label": "make build",
87+
"hide": true,
11288
"type": "shell",
11389
"command": "echo make: Nothing to be done for 'all'. && sleep 4"
11490
},
11591
{
11692
"label": "run tests",
93+
"hide": true,
11794
"type": "shell",
11895
"command": "echo 'starting tests...' && sleep 4 && echo 'Tests passed'"
11996
},
12097
{
12198
"label": "run webserver",
99+
"hide": true,
122100
"type": "shell",
123101
"command": "echo 'Serving on 127.0.0.1:8080' && sleep 120"
124102
}
@@ -133,11 +111,7 @@
133111
"id": "position",
134112
"description": "This is a position",
135113
"type": "pickString",
136-
"options": [
137-
"first",
138-
"second",
139-
"third"
140-
]
114+
"options": ["first", "second", "third"]
141115
}
142116
]
143117
}

0 commit comments

Comments
 (0)