Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix coverage
  • Loading branch information
jorgensd committed Oct 13, 2022
commit f2bdf90834d41269aff42c88351162bc732f2468
2 changes: 2 additions & 0 deletions docs/part1/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ addopts = [
]
```
The last option is due to pytest's recommendation for new projects, see [Choosing an import mode](https://docs.pytest.org/en/latest/explanation/goodpractices.html#choosing-an-import-mode) for more information.

For other inputs to `[tool.pytest.ini_options]` see: [https://docs.pytest.org/en/latest/reference/customize.html#pyproject-toml](https://docs.pytest.org/en/latest/reference/customize.html#pyproject-toml)
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ files = [ # Folder to which files that should be checked by mypy

[tool.pytest.ini_options]
addopts = [
"--cov=mypackage --cov-report html --cov-report term-missing -v",
"--import-mode=importlib"
]
"--import-mode=importlib",
"--cov=mypackage",
"--cov-report=html",
"--cov-report=term-missing",
"-v"]

testpaths = [
"test"
Expand Down