Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pytest invocation #299

Merged
merged 1 commit into from Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -20,11 +20,11 @@ tmp:

# Run the test suite, optionally with coverage
test: tmp
DID_DIR=$(TMP) py.test tests
DID_DIR=$(TMP) pytest tests
smoke: tmp
DID_DIR=$(TMP) py.test tests/test_cli.py
DID_DIR=$(TMP) pytest tests/test_cli.py
coverage: tmp
DID_DIR=$(TMP) coverage run --source=did,bin -m py.test tests
DID_DIR=$(TMP) coverage run --source=did,bin -m pytest tests
coverage report
coverage annotate

Expand Down
2 changes: 1 addition & 1 deletion docs/contribute.rst
Expand Up @@ -151,7 +151,7 @@ Tests

To run tests using pytest::

coverage run --source=did -m py.test tests
coverage run --source=did -m pytest tests
coverage report

Install pytest and coverage using yum::
Expand Down