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