|
| 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 | + |
1 | 9 | { |
2 | | - "version": "0.1.0", |
| 10 | + "version": "2.0.0", |
| 11 | + "_runner": "terminal", |
3 | 12 | "windows": { |
4 | 13 | "command": "cmd", |
5 | | - "args": ["/c", "chcp 65001 >nul &"] |
| 14 | + "args": ["/c", "chcp 65001 ;"] |
6 | 15 | }, |
7 | 16 | "linux": { |
8 | 17 | "command": "sh", |
9 | 18 | "args": ["-c"] |
10 | 19 | }, |
11 | 20 | "isShellCommand": true, |
12 | | - "showOutput": "silent", |
| 21 | + // "showOutput": "silent", |
| 22 | + "_runner": "terminal", |
13 | 23 | "tasks": [ |
14 | 24 | { |
15 | 25 | "taskName": "Testing project", |
|
60 | 70 | "args": [ |
61 | 71 | "1bdd", |
62 | 72 | "${workspaceRoot}/features", |
| 73 | + "-fail-fast", |
63 | 74 | "-out", |
64 | 75 | "${workspaceRoot}/exec.log" |
65 | 76 | ], |
|
105 | 116 | } |
106 | 117 | }, |
107 | 118 | { |
108 | | - "taskName": "Exec feature + debug", |
| 119 | + "taskName": "Exec feature for current step def", |
109 | 120 | "args": [ |
110 | 121 | "1bdd", |
111 | | - "${file}", |
| 122 | + "${fileDirname}/../${fileBasenameNoExtension}.feature", |
112 | 123 | "-fail-fast", |
113 | | - "-verbose", |
114 | | - "on", |
115 | 124 | "-out", |
116 | 125 | "${workspaceRoot}/exec.log" |
117 | 126 | ], |
118 | 127 | "echoCommand": true, |
119 | 128 | "showOutput": "always", |
120 | 129 | "suppressTaskName": true, |
121 | | - // "isBuildCommand": false, |
122 | | - "isTestCommand": false, |
| 130 | + "isBuildCommand": false, |
| 131 | + "isTestCommand": true, |
123 | 132 | "problemMatcher": { |
124 | 133 | "fileLocation": "absolute", |
125 | | - "pattern": { |
| 134 | + "pattern": [ |
| 135 | + { |
126 | 136 | "regexp": "{Модуль\\s+(.+)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^{]*)", |
127 | 137 | "file": 1, |
128 | 138 | "location": 2, |
129 | 139 | "message": 3 |
130 | 140 | } |
| 141 | + ] |
131 | 142 | } |
132 | 143 | }, |
133 | 144 | { |
|
154 | 165 | } |
155 | 166 | } |
156 | 167 | }, |
| 168 | + { |
| 169 | + "taskName": "Opm: package build", |
| 170 | + "args": [ |
| 171 | + "opm", |
| 172 | + "build", |
| 173 | + "${workspaceRoot}" |
| 174 | + ], |
| 175 | + "echoCommand": true, |
| 176 | + "showOutput": "always", |
| 177 | + "suppressTaskName": true, |
| 178 | + "isBuildCommand": false |
| 179 | + }, |
157 | 180 | { |
158 | 181 | "taskName": "OneScript: compile", |
159 | 182 | "args": [ |
|
0 commit comments