Added VS code tasks for running/testing

This commit is contained in:
Antoine Gersant 2017-06-24 23:26:48 -07:00
parent 63f78efa3d
commit fc4bac94b4

25
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,25 @@
{
"version": "0.1.0",
"showOutput": "always",
"tasks": [
// Run test environment
{
"taskName": "Run",
"options": { "cwd": "${workspaceRoot}" },
"command": "cargo",
"args": ["run", "--", "-c", "./TestConfigWindows.toml", "-d", "test.sqlite", "-w", "../polaris-web"]
},
// Run unit tests
{
"isTestCommand": true,
"taskName": "Test",
"options": { "cwd": "${workspaceRoot}" },
"command": "cargo",
"args": ["test"]
}
]
}