I would like to attach a debugger while running the unittest module. I can't seem to find any info about this via the google. Does anyone have a config that would allow debugging into the python test runner? The other this is that i use the discover arg to match my test pattern. I don't mind having to debug individual files but it would be nice to just fire the debugger with a config i don't need to monkey with whenever i need to change to a different file.
python -m unittest discover -p "*_test.py"
I've tried adding this config
{
"name": "Python: Unittest",
"type": "python",
"request": "launch",
"module": "unittest",
"args": ["discover", "-p", "'*_test.py'"]
},
but i get no matches found: '*_test.py' error...
anyone got ideas? another way to debug into the unittest runner?


