Skip to content

Commit

Permalink
Merge pull request #1244 from DataDog/cbeauchesne/vscode-pytest-integ…
Browse files Browse the repository at this point in the history
…ration

Add vscode conf to run and debug default scenario
  • Loading branch information
cbeauchesne authored Jun 12, 2023
2 parents d70f10b + 3fd3e3e commit 7beef56
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
36 changes: 32 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,40 @@
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"name": "Run DEFAULT scenario",
"type": "python",
"request": "launch",
"program": "${file}",
"module": "pytest",
"args": ["-p", "no:warnings"],
"console": "integratedTerminal",
"justMyCode": false
"justMyCode": true
},
{
"name": "Run INTEGRATIONS scenario",
"type": "python",
"request": "launch",
"module": "pytest",
"args": ["-S", "INTEGRATIONS", "-p", "no:warnings"],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Run LIBRARY_CONF_CUSTOM_HEADERS_LONG scenario",
"type": "python",
"request": "launch",
"module": "pytest",
"args": ["-S", "LIBRARY_CONF_CUSTOM_HEADERS_LONG", "-p", "no:warnings"],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Run PROFILING scenario",
"type": "python",
"request": "launch",
"module": "pytest",
"args": ["-S", "PROFILING", "-p", "no:warnings"],
"console": "integratedTerminal",
"justMyCode": true
}
]
}
}
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.provider": "black",
"java.compile.nullAnalysis.mode": "disabled"
"java.compile.nullAnalysis.mode": "disabled",
"python.testing.pytestArgs": [
"tests",
"--replay"
],
"python.testing.pytestEnabled": true
}

0 comments on commit 7beef56

Please sign in to comment.