Adds new tutorial about using pytest and code coverage#1739
Merged
webknjaz merged 6 commits intocherrypy:masterfrom Sep 9, 2018
Merged
Adds new tutorial about using pytest and code coverage#1739webknjaz merged 6 commits intocherrypy:masterfrom
webknjaz merged 6 commits intocherrypy:masterfrom
Conversation
webknjaz
reviewed
Sep 8, 2018
docs/tutorials.rst
Outdated
| if __name__ == '__main__': | ||
| cherrypy.quickstart(StringGenerator()) | ||
|
|
||
| Save this into a file named `tut02.py`. |
webknjaz
reviewed
Sep 8, 2018
docs/tutorials.rst
Outdated
|
|
||
| .. note:: | ||
|
|
||
| If you don't have pytest installed, you'll need to install it by pip install pytest |
Member
There was a problem hiding this comment.
use double backticks for command
webknjaz
reviewed
Sep 8, 2018
docs/tutorials.rst
Outdated
| and extend it with your operations. | ||
|
|
||
| Tutorial 12: Using pytest and code coverage | ||
| ################################### |
Member
There was a problem hiding this comment.
length should match the title itself
webknjaz
reviewed
Sep 8, 2018
docs/tutorials.rst
Outdated
|
|
||
| To add coverage support to pytest, you'll need to install it by pip install pytest-cov | ||
|
|
||
| This tells us that one line is missing. Of course it is because that is only executed when |
Member
There was a problem hiding this comment.
let's use single space after a period
1) Changed from tut02 naming to tut12 2) Show commands with double backticks 3) Make source RST be same length under section title 4) Changed some spacing after periods to be single spaces.
Codecov Report
@@ Coverage Diff @@
## master #1739 +/- ##
=========================================
Coverage ? 78.28%
=========================================
Files ? 104
Lines ? 13317
Branches ? 0
=========================================
Hits ? 10425
Misses ? 2892
Partials ? 0 |
webknjaz
approved these changes
Sep 9, 2018
Member
webknjaz
left a comment
There was a problem hiding this comment.
Thanks! It's now going live :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1731
What kind of change does this PR introduce?
What is the related issue number (starting with
#)Can't get code coverage to work.... #1731
What is the current behavior? (You can also link to an open issue here)
N/A
What is the new behavior (if this is a feature change)?
N/A
Other information:
This just adds a new tutorial.
Checklist:
and description in grammatically correct, complete sentences