diff options
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -1,3 +1,43 @@ +[tool:pytest] +# do not litter the working directory +cache_dir = /tmp/pytest_cache +# slightly more verbose output +console_output_style = count +addopts = + # show all skipped/failed/xfailed tests in the summary except passed + -ra + --strict-config + # record coverage in these two packages + --cov=beets + --cov=beetsplug + # save xml for coverage upload + --cov-report=xml:.reports/coverage.xml + # save html files for local dev use + --cov-report=html:.reports/html + # record coverage across logical branches + --cov-branch + # show which tests cover specific lines in the code (available in HTML) + --cov-context=test + +[coverage:run] +data_file = .reports/coverage/data +branch = true +relative_files = true + +[coverage:report] +precision = 2 +skip_empty = true +show_missing = true +exclude_lines = + pragma: no cover + if TYPE_CHECKING + if typing.TYPE_CHECKING + raise AssertionError + raise NotImplementedError + +[coverage:html] +show_contexts = true + [flake8] min-version = 3.6 accept-encodings = utf-8 |