-
Notifications
You must be signed in to change notification settings - Fork 211
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
A simple way to include context on unittest coverage #371
Comments
@sansalinas Thanks for doing this! It's very helpful to have people trying out ways to use the data. Since 5.0a7 was released, I've added better context reporting to the built-in coverage.py HTML report. Starting in 5.0b1, there's a "ctx" marker at the right edge that opens to list the contexts. I'd love to hear what you think. It can probably use some finesse. |
@nedbat How can I see the above "ctx" marker? Can you please share a screenshot? I've ran my test with dynamic context enabled and generated the report with |
@undera Use the |
Could pytest-cov automatically set In the meantime, I'm inclined to document the necessary entry in
|
Feel free to make a PR with the docs change. |
I'm happy to do that, @ionelmc. Does that imply any answer to my questions about setting options? 😉 |
Hi, here you can find a simple way to include context info into a project for our unittext, I read in some post about it was not clear how context was going to be used, I generate this simple script to make a demo about the way that I use, similar that php coverage report is done.
https://github.com/sansalinas/coverage-context-report
Maybe would be better include into coverage HTML report a dropdown with all contexts and color lines according the selected one, but this is my first approach.
Take in consideration this the first time that I work with python :S (I have started 3 weeks ago) and sorry for my English
The text was updated successfully, but these errors were encountered: