-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Description
--cov-report=term-missing
tells us which line numbers aren’t covered, but you still have to open the file to see the actual code. Could we add a flag (something like --show-code
) that prints the uncovered lines themselves right after the tests finish?
This feature would be particularly useful for using code-gen tools to fill testing gaps because LLM-based tools are not good at finding lines by number (https://gandenberger.org/posts/2025-05-07_llm-test-coverage/). It would also mimic how many linting tools such ruff
behave.
I'd be happy to contribute a pull request if there is interest.
menzenski
Metadata
Metadata
Assignees
Labels
No labels