Skip to content

Debugging py.test

Don Jayamanne edited this page Dec 12, 2016 · 3 revisions
  • Create a file named xyz.py in the root directory
  • Add the following code
import pytest
pytest.main()
  • Add a break point in you test method (the test method you wish to debug)
  • Start debugging

Warning:

Using pytest-cov in the pytest options will prevent the debugger from function correctly.

Clone this wiki locally