Skip to content

Instantly share code, notes, and snippets.

@GenevieveBuckley
Last active April 4, 2019 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GenevieveBuckley/9f70ac1aabc2bb6c425125f90e6b0afe to your computer and use it in GitHub Desktop.
Save GenevieveBuckley/9f70ac1aabc2bb6c425125f90e6b0afe to your computer and use it in GitHub Desktop.
Pytest configuration file
[pytest]
addopts = --cov-report xml:cov.xml --cov-report term-missing --cov=mypackagename
@GenevieveBuckley
Copy link
Author

GenevieveBuckley commented Apr 4, 2019

Alternatively, pytest.ini should contain:

[pytest]
testpaths = tests/
addopts = --cov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment