Skip to content

Commit

Permalink
Add pytest config
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Dec 19, 2024
1 parent 74bd8e9 commit 42326f7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Test with pytest
run: |
pytest -v --cov=app --cov-report=xml
pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@ target-version = "py39"
lint.ignore = [
"E501", # Ignore line length (similar to flake8's max-line-length)
]

[tool.pytest.ini_options]
addopts ="""
-r a
--verbose
--strict-markers
--cov app
--cov-report html
--durations-min 1
--durations 10
--color yes
--showlocals
"""
testpaths = [
"app",
]

0 comments on commit 42326f7

Please sign in to comment.