Skip to content

Commit

Permalink
Update pytest configuration for improved coverage reporting / fix pyp…
Browse files Browse the repository at this point in the history
…roject.toml config issue
  • Loading branch information
to-sta committed Feb 27, 2025
1 parent e43d507 commit 9dcd28f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_ci_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ jobs:
- name: Run pytest - Unit Tests
run: |
pytest ./backend --cov=backend --cov-report=term --cov-fail-under=70
pytest ./backend --cov=backend --cov-report=term-missing:skip-covered --cov-fail-under=70 --cov-config=./backend/pyproject.toml
3 changes: 2 additions & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ line_length = 88
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings"
python_files = "tests.py test_*.py *_tests.py"
addopts = "--nomigrations --cov=. --cov-report=html --cov-report=term"
addopts = "--nomigrations"

[tool.coverage.run]
omit = [
Expand All @@ -57,6 +57,7 @@ omit = [
"wsgi.py",
"manage.py",
"*/__init__.py",
"*/factories.py",
]

[tool.mypy]
Expand Down

0 comments on commit 9dcd28f

Please sign in to comment.