Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytest config with common options including coverage report #486

Merged
merged 1 commit into from
Mar 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dist/
__pycache__/
.cache/
.coverage
htmlcov/
augur.egg-info/
.mypy_cache/
nextstrain_augur.egg-info/
Expand Down
32 changes: 24 additions & 8 deletions pytest.python3.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
[pytest]
addopts =
# do not capture any output---necessary for interactive breakpoints
-s
# do not capture any output---necessary for interactive breakpoints
-s

# run any doctests found in .py modules
--doctest-modules
# report any tests that are skipped, xfailed, or xpassed
-rsxX

# calculate test coverage for the `augur` module
--cov=augur
# report local variables with every stack trace
-l

# output verbosity
# show individual test names
-vv

# run any doctests found in .py modules
--doctest-modules

# calculate test coverage for the `augur` module
--cov=augur

# add html coverage report generation
--cov-report=html

# output short traceback
--tb=short

testpaths =
augur/
tests/
augur/
tests/
File renamed without changes.