1

I have an issue debugging python tests using pytest on IntelliJ IDE with the python plugin

the tests can be run (they have the green arrow) and after running them they are executed correctly but I can't debug them.

I already configured my run/debug configuration as was answered here: How do I configure PyCharm to run py.test tests?

here is my IDE: example

Execution log:

collecting ... collected 3 items

test_demo_test.py::test_uppercase

test_demo_test.py::test_reversed

test_demo_test.py::test_some_primes

============================== 3 passed in 0.07s ===============================

Process finished with exit code 0

PASSED [ 33%]

PASSED [ 66%]

PASSED [100%]

  • Did you hit debug button ? , it is next to run button or it could be your breakpoint is not executing. May be put breakpoint beginning of first statement – Macintosh_89 Mar 02 '21 at 16:42
  • What happens when you try to debug? Do you see an error, does the execution skips breakpoints? Please provide more information. – Andrey Resler Mar 02 '21 at 23:23

0 Answers0