Can debug python tests which are using pytest library on visual studio 2010 ? I added the -m pytest on the Interpreter arguments but the breakpoints are not hit, I can only run the test script without debugging it.
Can debug python tests which are using pytest library on visual studio 2010 ? I added the -m pytest on the Interpreter arguments but the breakpoints are not hit, I can only run the test script without debugging it.
Pytest recommends creating a standalone startup script.
if __name__ == '__main__':import pytestpytest.main()
This is what I do and PTVS debugging works for me.