VSCode pytest test discovery fails

后端 未结 10 670
南方客
南方客 2020-12-15 16:25

Pytest test discovery is failing. The UI states:

Test discovery error, please check the configuration settings for the tests

The output window s

10条回答
  •  無奈伤痛
    2020-12-15 17:12

    I spent ages trying to decipher this unhelpful error after creating a test that had import errors. Verify that your test suite can actually be executed before doing any deeper troubleshooting.

    pytest --collect-only is your friend.

提交回复
热议问题