Skip to content
Snippets Groups Projects
Commit fc5adde9 authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Merge branch 'dev' into 'publish-oop'

# Conflicts:
#   tests/runner_tests.py
parents eff0b1af 0f141aae
Branches
Tags
2 merge requests!15Dev into main,!14Publish oop
Pipeline #764923 passed
......@@ -57,6 +57,7 @@ test:
script:
# - python -m unittest discover -s ./tests/ -p "test*" # deprecated unittest command
- python tests/runner_tests.py
coverage: '/TOTAL.*\s+(\d+%)$/'
# - pip install tox flake8 # you can also use tox
# - tox -e py36,flake8
......
......@@ -23,10 +23,9 @@ result = testRunner.run(tests)
cov.stop()
cov.save()
cov.report(show_missing=True)
if result.wasSuccessful():
covered = cov.report()
covered = cov.report(show_missing=True, precision=2)
assert covered > 95, "Not enough coverage."
sys.exit(0)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment