Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_python
Commits
e8b9a63b
Commit
e8b9a63b
authored
2 years ago
by
nugget
Browse files
Options
Downloads
Patches
Plain Diff
Test for failing pipeline below 100% coverage.
parent
35c68ed5
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!12
v.0.1 for alpha release
,
!8
First OOP implementation of tagplot.py.
Pipeline
#725156
failed
2 years ago
Stage: linting
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runner_tests.py
+5
-2
5 additions, 2 deletions
runner_tests.py
with
5 additions
and
2 deletions
runner_tests.py
+
5
−
2
View file @
e8b9a63b
...
...
@@ -5,6 +5,7 @@ Runner for all tests regarding the plotid project.
Includes starting all tests and measuring the code coverage.
"""
import
sys
import
unittest
import
coverage
...
...
@@ -21,6 +22,8 @@ cov.save()
cov
.
report
(
show_missing
=
True
)
if
result
.
wasSuccessful
():
exit
(
0
)
covered
=
cov
.
report
()
assert
covered
>
100
,
"
Not enough coverage.
"
sys
.
exit
(
0
)
else
:
exit
(
1
)
sys
.
exit
(
1
)
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