Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show line no for missing branches in terminal report #230

Closed
nedbat opened this issue Jan 5, 2013 · 3 comments
Closed

Show line no for missing branches in terminal report #230

nedbat opened this issue Jan 5, 2013 · 3 comments
Labels
enhancement New feature or request report

Comments

@nedbat
Copy link
Owner

nedbat commented Jan 5, 2013

Originally reported by Simon Sapin (Bitbucket: SimonSapin, GitHub: SimonSapin)


coverage report --show-missing shows the line numbers for lines that are not covered at all, but not for line where all branches are not covered. (As shown by the BrMiss column.)

The easiest way I found to know which are the missing lines is through the HTML report, which is not as easy as it would be with the terminal report. Did I miss something?


@nedbat
Copy link
Owner Author

nedbat commented Jan 5, 2013

It should be simple to add the partial-branch lines to the list of missing lines. I've just never found the console report that helpful, since I have to then jump into an editor to see the actual line.

@nedbat
Copy link
Owner Author

nedbat commented Jan 5, 2013

Original comment by Simon Sapin (Bitbucket: SimonSapin, GitHub: SimonSapin)


My use case is running inotifyrun py.test --cov=myproject --cov-report term-missing in a terminal window next to the editor. inotifyrun restarts the command automatically when a file is changed, so I don’t need to switch between windows.

@nedbat
Copy link
Owner Author

nedbat commented Jul 19, 2014

This was implemented in changeset 86345219ad96ee928525d50df6a984c0de47bd76 (bb)

@nedbat nedbat closed this as completed Jul 19, 2014
@nedbat nedbat added enhancement New feature or request and removed proposal labels Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request report
Projects
None yet
Development

No branches or pull requests

1 participant