5

I try to debug my pytest-cases like this:

import pytest

def test_something()
    ...
    ...
    pytest.set_trace()

Then, i execute the tests by running elpy-test. The test starts to run and stops at pytest.set_trace() - unfortunately the compilation buffer is non-interactive and I'm stuck with a debugger that I can't use...

What's the right way to run tests in the debugger, using emacs?

Markus
  • 471
  • 2
  • 12

1 Answers1

5

I think that there are only the following solutions:

  • Run tests outside of Emacs from your terminal emulator
  • Run tests from realgud
  • Run tests inside Emacs via eshell. But shell output may be corrupted, so this not a good solution
  • Run tests with pytest-el. It works good, but without autocompletion.
sivakov512
  • 516
  • 3
  • 13