Skip to content
Snippets Groups Projects
Commit e8b9a63b authored by nugget's avatar nugget
Browse files

Test for failing pipeline below 100% coverage.

parent 35c68ed5
Branches
Tags
2 merge requests!12v.0.1 for alpha release,!8First OOP implementation of tagplot.py.
Pipeline #725156 failed
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment