Improve and refactor testing.

This commit is contained in:
george 2022-02-03 21:08:38 +00:00
parent b490acead8
commit 3a5f077bbf
No known key found for this signature in database
GPG Key ID: D30164B91DE6EEE3
4 changed files with 17 additions and 2 deletions

View File

@ -65,7 +65,7 @@ jobs:
- name: Test with pytest
run: |
pytest --cov=. --cov-report=term:skip-covered --cov-report=html:htmlcov --cov-fail-under=60
pytest
- name: Archive code coverage results
uses: actions/upload-artifact@v2

10
coverage.ini Normal file
View File

@ -0,0 +1,10 @@
[run]
branch = True
source = .
[report]
fail_under = 55
omit =
app/fake_data.py
oauth_tester.py
skip_covered = True

5
pytest.ini Normal file
View File

@ -0,0 +1,5 @@
[pytest]
addopts =
--cov
--cov-config coverage.ini
--cov-report=html:htmlcov

View File

@ -9,4 +9,4 @@ sleep 5
poetry run pytest
docker rm -f sl-test-db
docker rm -f sl-test-db