Skip to content

Instantly share code, notes, and snippets.

@jimpriest
Created February 10, 2019 18:19
Show Gist options
  • Save jimpriest/88450f9e9d1d29530ac325d4e58d022e to your computer and use it in GitHub Desktop.
Save jimpriest/88450f9e9d1d29530ac325d4e58d022e to your computer and use it in GitHub Desktop.
Run Robot Framework tests from VSCode
{
"version": "2.0.0",
"tasks": [
{
"label": "Clean Results",
"type": "shell",
"command": "DEL /F /Q ${workspaceFolder}\\results\\*.*"
},
{
"label": "Run Robot Tests",
"dependsOn": "Clean Results",
"type": "shell",
"command": "robot",
// quote each argument and flag
"args": [
"-d", "results"
, "-v", "password:${input:Password}"
, "--suite", "${input:Suite}"
, "tests/${input:Test}"],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared"
},
"inputs":[
{
"id": "Password",
"description": "Please enter a password",
"default": "",
"type": "promptString",
},
{
"id": "Location",
"description": "Select where to run test",
"default": "TEST",
"type": "pickString",
"options": ["TEST", "DEV"]
},
{
"id": "Test",
"description": "Select test",
"default": "login",
"type": "pickString",
"options": ["foo", "bar", "test", "general", "login"]
},
{
"id": "Suite",
"description": "Enter specific suite (optional)",
"default": "login_tests",
"type": "promptString"
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment