Updated to task system version 2.0
This commit is contained in:
parent
db105966f4
commit
7cf5f7db09
1 changed files with 37 additions and 20 deletions
53
.vscode/tasks.json
vendored
53
.vscode/tasks.json
vendored
|
@ -1,32 +1,49 @@
|
||||||
{
|
{
|
||||||
"version": "0.1.0",
|
"version": "2.0.0",
|
||||||
"showOutput": "always",
|
"presentation": {
|
||||||
|
"reveal": "always"
|
||||||
|
},
|
||||||
"tasks": [
|
"tasks": [
|
||||||
|
|
||||||
// Run test environment
|
// Run test environment
|
||||||
{
|
{
|
||||||
"taskName": "Run",
|
"label": "Run",
|
||||||
"options": { "cwd": "${workspaceRoot}" },
|
"options": {
|
||||||
"command": "cargo",
|
"cwd": "${workspaceRoot}"
|
||||||
"args": ["run", "--", "-c", "./TestConfigWindows.toml", "-d", "test/db.sqlite", "-w", "../polaris-web"]
|
},
|
||||||
|
"command": "cargo",
|
||||||
|
"args": [
|
||||||
|
"run",
|
||||||
|
"--",
|
||||||
|
"-c",
|
||||||
|
"./TestConfigWindows.toml",
|
||||||
|
"-d",
|
||||||
|
"test/db.sqlite",
|
||||||
|
"-w",
|
||||||
|
"../polaris-web"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
// Run unit tests
|
// Run unit tests
|
||||||
{
|
{
|
||||||
"isTestCommand": true,
|
"group": "test",
|
||||||
"taskName": "Test",
|
"label": "Test",
|
||||||
"options": { "cwd": "${workspaceRoot}" },
|
"options": {
|
||||||
"command": "cargo",
|
"cwd": "${workspaceRoot}"
|
||||||
"args": ["test"]
|
},
|
||||||
|
"command": "cargo",
|
||||||
|
"args": [
|
||||||
|
"test"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
// Compile
|
// Compile
|
||||||
{
|
{
|
||||||
"taskName": "Compile",
|
"label": "Compile",
|
||||||
"options": { "cwd": "${workspaceRoot}" },
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}"
|
||||||
|
},
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"args": ["check"]
|
"args": [
|
||||||
|
"check"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue