Why am I getting "TypeError: message must be set" when clicking debug test in VS Code?

Viewed 659

I'm trying to get pytest back up and running in VS Code. I have the simple test function as follows:

def test_func():
    x = 1
    y = 1
    assert x == y

The test is discovered fine and I can click on the Run Test link above the test function to run the test. However, if I click the Debug Test link then I get an output message saying Error: TypeError: message must be set.

I've tried googling the error and there is only one result (on GitHub) however the link is dead.

Any ideas on what might be happening?

2 Answers

Ctrl+Shift+P in VsCode then click on "Python: Run All Tests"

Related