Code coverage not available

Cursor does not seem to support code coverage. The relevant “test with coverage” icon does not show up. Following stack overflow, I can run pytest-cov in the “terminal-style” output of the tests, but I do not get the “Test coverage” window. Selecting “Open test coverage” with Cmd Shfit P does not do anything.

Note: Using the same exact .vscode setup, VSCode works for all of these, so this seems to be something missing/broken in Cursor (opening this as a bug report because it should’ve been part of VSCode when you forked).

Help would be much appreciated, as this is a crucial tool for development of larger applications. I find myself hopping between VSCode and Cursor because of it, which is very annoying.

3 Likes