Skip to content

Instantly share code, notes, and snippets.

@stephen-bunn
Created May 7, 2019 20:17
Show Gist options
  • Save stephen-bunn/32d6af99488835f921d50acd0ecf0781 to your computer and use it in GitHub Desktop.
Save stephen-bunn/32d6af99488835f921d50acd0ecf0781 to your computer and use it in GitHub Desktop.
Medium - Example of Pytest configuration
[tool:pytest]
plugins = cov flake8 xdist
addopts = -rxsX --flake8 -n 4 --cov
norecursedirs = .git _build dist news tasks docs
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
flake8-ignore =
docs/source/* ALL
tests/*.py ALL
setup.py ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment