Pytest on Python Tools for visual studio

ptvs, pytest, python, unit-testing, visual-studio

Solution

Pytest recommends creating a standalone startup script.

if __name__ == '__main__':
    import pytest
    pytest.main()

This is what I do and PTVS debugging works for me.

Problem

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.

Original source

Related problems