Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
zesje
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Works on my machine
zesje
Commits
3f19d623
Commit
3f19d623
authored
May 21, 2019
by
Ruben Young On
Browse files
Options
Downloads
Patches
Plain Diff
Changed coverage commands in README
parent
47c1a78c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#17791
passed
May 21, 2019
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+4
-4
4 additions, 4 deletions
README.md
with
4 additions
and
4 deletions
README.md
+
4
−
4
View file @
3f19d623
...
...
@@ -68,11 +68,11 @@ You can run the tests by running
#### Viewing test coverage
As a test coverage tool,
`pytest-cov`
is used.
As a test coverage tool
for Python tests
,
`pytest-cov`
is used.
To view test coverage, run
yarn cov
yarn
test:py:
cov
A coverage report is now generated in the terminal, as an XML file, and in HTML format.
The HTML file shows an overview of untested code in red.
...
...
@@ -83,10 +83,10 @@ There is a plugin called Coverage Gutter that will highlight which lines of code
Simply install Coverage Gutter, after which a watch button appears in the colored box at the bottom of your IDE.
When you click watch, green and red lines appear next to the line numbers indicating if the code is covered.
Coverage Gutter uses the XML which is produced by
`yarn cov`
, called
`cov.xml`
. This file should be located in the main folder.
Coverage Gutter uses the XML which is produced by
`yarn
test:py:
cov`
, called
`cov.xml`
. This file should be located in the main folder.
##### Viewing coverage in PyCharm
To view test coverage in PyCharm, run
`yarn cov`
to generate the coverage report XML file
`cov.xml`
if it is not present already.
To view test coverage in PyCharm, run
`yarn
test:py:
cov`
to generate the coverage report XML file
`cov.xml`
if it is not present already.
Next, open up PyCharm and in the top bar go to
**Run -> Show Code Coverage Data**
(Ctrl + Alt + F6).
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment