add json. file:
add @wip tag in gerkin scenrio.
select debug in Behave Current Scenerio
select Gerkin scenerio and run debug.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Behave Run ALL",
"type": "python",
"request": "launch",
"module": "behave",
"console": "integratedTerminal",
"env": {
"BASE_DIR": "${workspaceFolder}"
},
"args":[
"--no-capture",
"--no-capture-stderr",
"*.feature"
]
},
{
"name": "Behave specific tags",
"type": "python",
"request": "launch",
"module": "behave",
"console": "integratedTerminal",
"env": {
"BASE_DIR": "${workspaceFolder}"
},
"args":[
"GUI/CustomerWebApp",
"--tags=@US1003",
"--no-capture",
"--no-capture-stderr"
]
},
{
"name": "Behave Current file",
"type": "python",
"request": "launch",
"module": "behave",
"console": "integratedTerminal",
"env": {
"BASE_DIR": "${workspaceFolder}"
},
"args":[
"${file}",
"-w",
"--no-capture",
"--no-capture-stderr"
]
},
{
"name": "Behave Selected Scenario",
"type": "python",
"request": "launch",
"module": "behave",
"console": "integratedTerminal",
"env": {
"BASE_DIR": "${workspaceFolder}"
},
"args":[
"${file}",
"-n",
"${selectedtext}",
"--no-capture",
"--no-capture-stderr"
]
}
]
}