Skip to content

Unittest discovery silently fails when Pytest is not installed #21688

Closed
@joyceerhl

Description

@joyceerhl

Testing #13301

  1. Run Python: Configure Tests
  2. Choose unittest
  3. 🐛 nothing happens. When I open the test view I see that there was a discovery error and that I should see Output > Python. I would expect an error message with a link or button to open the output channel
  4. 🐛 the output channel says test discovery failed because pytest wasn't installed. Should we help the user install pytest in this flow? Also, is it expected that pytest is required even if I'm trying to use unittest?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions