Skip to content

Commit cbab691

Browse files
committed
Выделены отдельные команды тестирования через "`1testrunner" и "opm test" #73
1 parent 1f520ca commit cbab691

File tree

1 file changed

+40
-35
lines changed

1 file changed

+40
-35
lines changed

.vscode/tasks.json

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
// Available variables which can be used inside of strings.
2+
// ${workspaceRoot}: the root folder of the team
3+
// ${file}: the current opened file
4+
// ${fileBasename}: the current opened file's basename
5+
// ${fileDirname}: the current opened file's dirname
6+
// ${fileExtname}: the current opened file's extension
7+
// ${cwd}: the current working directory of the spawned process
8+
19
{
210
"version": "2.0.0",
311
"_runner": "terminal",
@@ -10,11 +18,11 @@
1018
"args": ["-c"]
1119
},
1220
"isShellCommand": true,
13-
"showOutput": "silent",
21+
// "showOutput": "silent",
1422
"_runner": "terminal",
1523
"tasks": [
1624
{
17-
"taskName": "Testing project",
25+
"taskName": "Testing project (1testrunner)",
1826
"args": [
1927
"1testrunner",
2028
"-runall",
@@ -36,17 +44,17 @@
3644
}
3745
},
3846
{
39-
"taskName": "Testing current test-file",
47+
"taskName": "Testing project (opm test)",
4048
"args": [
41-
"1testrunner",
42-
"-run",
43-
"${file}"
49+
"oscript",
50+
"src/opm.os",
51+
"test"
4452
],
4553
"echoCommand": true,
4654
"showOutput": "always",
4755
"suppressTaskName": true,
48-
"isBuildCommand": false,
49-
"isTestCommand": true,
56+
// "isBuildCommand": false,
57+
"isTestCommand": false,
5058
"problemMatcher": {
5159
"fileLocation": "absolute",
5260
"pattern": {
@@ -58,22 +66,33 @@
5866
}
5967
},
6068
{
61-
"taskName": "Opm: package build",
69+
"taskName": "Testing current test-file",
6270
"args": [
63-
"opm",
64-
"build",
65-
"${workspaceRoot}"
71+
"1testrunner",
72+
"-run",
73+
"${file}"
6674
],
6775
"echoCommand": true,
6876
"showOutput": "always",
6977
"suppressTaskName": true,
70-
"isBuildCommand": false
78+
"isBuildCommand": false,
79+
"isTestCommand": true,
80+
"problemMatcher": {
81+
"fileLocation": "absolute",
82+
"pattern": {
83+
"regexp": "{Модуль\\s+(.+)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^{]*)",
84+
"file": 1,
85+
"location": 2,
86+
"message": 3
87+
}
88+
}
7189
},
7290
{
7391
"taskName": "Exec all features",
7492
"args": [
7593
"1bdd",
7694
"${workspaceRoot}/features",
95+
"-fail-fast",
7796
"-out",
7897
"${workspaceRoot}/exec.log"
7998
],
@@ -145,20 +164,18 @@
145164
}
146165
},
147166
{
148-
"taskName": "Exec feature + debug",
167+
"taskName": "Generate feature steps",
149168
"args": [
150169
"1bdd",
170+
"gen",
151171
"${file}",
152-
"-fail-fast",
153-
"-verbose",
154-
"on",
155172
"-out",
156173
"${workspaceRoot}/exec.log"
157174
],
158175
"echoCommand": true,
159176
"showOutput": "always",
160177
"suppressTaskName": true,
161-
// "isBuildCommand": false,
178+
"isBuildCommand": false,
162179
"isTestCommand": false,
163180
"problemMatcher": {
164181
"fileLocation": "absolute",
@@ -171,28 +188,16 @@
171188
}
172189
},
173190
{
174-
"taskName": "Generate feature steps",
191+
"taskName": "Opm: package build",
175192
"args": [
176-
"1bdd",
177-
"gen",
178-
"${file}",
179-
"-out",
180-
"${workspaceRoot}/exec.log"
193+
"opm",
194+
"build",
195+
"${workspaceRoot}"
181196
],
182197
"echoCommand": true,
183198
"showOutput": "always",
184199
"suppressTaskName": true,
185-
"isBuildCommand": false,
186-
"isTestCommand": false,
187-
"problemMatcher": {
188-
"fileLocation": "absolute",
189-
"pattern": {
190-
"regexp": "{Модуль\\s+(.+)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^{]*)",
191-
"file": 1,
192-
"location": 2,
193-
"message": 3
194-
}
195-
}
200+
"isBuildCommand": false
196201
},
197202
{
198203
"taskName": "OneScript: compile",

0 commit comments

Comments
 (0)