-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the test fixtures agnostic from the invocation path
- Loading branch information
1 parent
8b76aba
commit 099e506
Showing
6 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.PHONY: coverage coverage-term test install-dependencies | ||
|
||
coverage: install-dependencies | ||
cd tests; pytest --cov-report=xml --cov=../ --cov-branch | ||
cd tests; rm -rf .coverage | ||
pytest --cov-report=xml --cov=../ --cov-branch | ||
rm -rf .coverage | ||
|
||
coverage-term: install-dependencies | ||
cd tests; pytest --cov-report=term --cov=../ --cov-branch | ||
cd tests; rm -rf .coverage | ||
pytest --cov-report=term --cov=../ --cov-branch | ||
rm -rf .coverage | ||
|
||
test: | ||
cd tests; pytest | ||
pytest | ||
|
||
install-dependencies: | ||
pip3 install -r dev-requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[pytest] | ||
python_files = Test*.py | ||
pythonpath = . | ||
pythonpath = . | ||
testpaths = tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.