2015-12-21 03:05:20 +00:00
|
|
|
[pytest]
|
|
|
|
testpaths = bidict tests docs
|
2018-11-05 20:52:59 +00:00
|
|
|
addopts =
|
|
|
|
--ignore=docs/conf.py
|
|
|
|
--verbose
|
|
|
|
--doctest-modules
|
|
|
|
--doctest-glob=tests/*.txt
|
|
|
|
# pytest's doctest support doesn't support Sphinx extensions
|
|
|
|
# (see https://www.sphinx-doc.org/en/latest/usage/extensions/doctest.html)
|
|
|
|
# so †est the code in the Sphinx docs using Sphinx rather than pytest
|
|
|
|
# (i.e. leave the next line commented out):
|
|
|
|
# --doctest-glob=docs/*.rst
|
2018-11-06 21:10:03 +00:00
|
|
|
# Only add the following from the docs for the sake of pytest's coverage report:
|
|
|
|
--doctest-glob=docs/extending.rst
|
2018-11-05 20:52:59 +00:00
|
|
|
--benchmark-columns=mean,stddev,outliers
|
|
|
|
--benchmark-group-by=func
|
|
|
|
--benchmark-save-data
|
|
|
|
# --benchmark-autosave
|
|
|
|
# --benchmark-compare
|
|
|
|
# --hypothesis-show-statistics
|
2015-12-21 03:05:20 +00:00
|
|
|
doctest_optionflags = IGNORE_EXCEPTION_DETAIL ELLIPSIS
|