Skip to content

Commit 5919d54

Browse files
committed
Добавил команды для VSC #15
1 parent 85c4ab9 commit 5919d54

File tree

1 file changed

+205
-0
lines changed

1 file changed

+205
-0
lines changed

.vscode/tasks.json

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
{
2+
"version": "0.1.0",
3+
"windows": {
4+
"command": "cmd",
5+
"args": ["/c"]
6+
},
7+
"linux": {
8+
"command": "sh",
9+
"args": ["-c"]
10+
},
11+
"isShellCommand": true,
12+
"showOutput": "silent",
13+
"args": [
14+
"-encoding=utf-8"
15+
],
16+
"tasks": [
17+
{
18+
"taskName": "Testing project",
19+
"args": [
20+
"oscript",
21+
"-encoding=utf-8",
22+
"${workspaceRoot}/../../1testrunner/testrunner.os",
23+
"-runall",
24+
"${workspaceRoot}/tests"
25+
],
26+
"echoCommand": true,
27+
"showOutput": "always",
28+
"suppressTaskName": true,
29+
// "isBuildCommand": false,
30+
"isTestCommand": false,
31+
"problemMatcher": {
32+
"fileLocation": "absolute",
33+
"pattern": {
34+
"regexp": "{Модуль\\s+(.+)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^{]*)",
35+
"file": 1,
36+
"location": 2,
37+
"message": 3
38+
}
39+
}
40+
},
41+
{
42+
"taskName": "Testing current test-file",
43+
"args": [
44+
"oscript",
45+
"-encoding=utf-8",
46+
"${workspaceRoot}/../../1testrunner/testrunner.os",
47+
"-run",
48+
"${file}",
49+
],
50+
"echoCommand": true,
51+
"showOutput": "always",
52+
"suppressTaskName": true,
53+
"isBuildCommand": false,
54+
"isTestCommand": true,
55+
"problemMatcher": {
56+
"fileLocation": "absolute",
57+
"pattern": {
58+
"regexp": "{Модуль\\s+(.+)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^{]*)",
59+
"file": 1,
60+
"location": 2,
61+
"message": 3
62+
}
63+
}
64+
},
65+
{
66+
"taskName": "Exec all features",
67+
"args": [
68+
"oscript",
69+
"-encoding=utf-8",
70+
"${workspaceRoot}/../1bdd/src/bdd.os",
71+
"${workspaceRoot}/.",
72+
"-out",
73+
"${workspaceRoot}/exec.log"
74+
],
75+
"echoCommand": true,
76+
"showOutput": "always",
77+
"suppressTaskName": true,
78+
"isBuildCommand": true,
79+
"isTestCommand": false,
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+
}
89+
},
90+
{
91+
"taskName": "Exec feature",
92+
"args": [
93+
"oscript",
94+
"-encoding=utf-8",
95+
"${workspaceRoot}/../1bdd/src/bdd.os",
96+
"${file}",
97+
"-out",
98+
"${workspaceRoot}/exec.log"
99+
],
100+
"echoCommand": true,
101+
"showOutput": "always",
102+
"suppressTaskName": true,
103+
"isBuildCommand": false,
104+
"isTestCommand": true,
105+
"problemMatcher": {
106+
"fileLocation": "absolute",
107+
"pattern": [
108+
{
109+
"regexp": "{Модуль\\s+(.+)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^{]*)",
110+
"file": 1,
111+
"location": 2,
112+
"message": 3
113+
}
114+
]
115+
}
116+
},
117+
{
118+
"taskName": "Generate feature steps",
119+
"args": [
120+
"oscript",
121+
"-encoding=utf-8",
122+
"${workspaceRoot}/../1bdd/src/bdd.os",
123+
"gen",
124+
"${file}",
125+
"-out",
126+
"${workspaceRoot}/exec.log"
127+
],
128+
"echoCommand": true,
129+
"showOutput": "always",
130+
"suppressTaskName": true,
131+
"isBuildCommand": false,
132+
"isTestCommand": false,
133+
"problemMatcher": {
134+
"fileLocation": "absolute",
135+
"pattern": {
136+
"regexp": "{Модуль\\s+(.+)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+([^{]*)",
137+
"file": 1,
138+
"location": 2,
139+
"message": 3
140+
}
141+
}
142+
},
143+
{
144+
"taskName": "OneScript: compile",
145+
"args": [
146+
"oscript",
147+
"-encoding=utf-8",
148+
"-compile",
149+
"${file}"
150+
],
151+
"echoCommand": true,
152+
"showOutput": "always",
153+
"suppressTaskName": true,
154+
"isBuildCommand": false
155+
},
156+
{
157+
"taskName": "OneScript: check",
158+
"args": [
159+
"oscript",
160+
"-encoding=utf-8",
161+
"-check",
162+
"${file}"
163+
],
164+
"echoCommand": true,
165+
"showOutput": "always",
166+
"suppressTaskName": true,
167+
"isBuildCommand": false
168+
},
169+
{
170+
"taskName": "OneScript: make",
171+
"args": [
172+
"oscript",
173+
"-encoding=utf-8",
174+
"-make",
175+
"${file}",
176+
"${fileBasename}.exe"
177+
],
178+
"echoCommand": true,
179+
"showOutput": "always",
180+
"suppressTaskName": true,
181+
"isBuildCommand": false
182+
},
183+
{
184+
"taskName": "OneScript: run",
185+
"args": [
186+
"oscript",
187+
"-encoding=utf-8",
188+
"${file}"
189+
],
190+
"echoCommand": true,
191+
"showOutput": "always",
192+
"suppressTaskName": true,
193+
"isBuildCommand": true,
194+
"problemMatcher": {
195+
"fileLocation": "absolute",
196+
"pattern": {
197+
"regexp": "^{Модуль\\s+(.*)\\s\\/\\s.*:\\s+(\\d+)\\s+\\/\\s+(.*)}$",
198+
"file": 1,
199+
"location": 2,
200+
"message": 3
201+
}
202+
}
203+
}
204+
]
205+
}

0 commit comments

Comments
 (0)