-
Notifications
You must be signed in to change notification settings - Fork 786
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
Move UTs to separate directory, add pytest to pre-commit #1109
Conversation
Some test files were in their own "tests/" directory. Deleted the extra "tests/" directories.
Shift it from monkey/pytest.ini to pyproject.toml. Add conftest.py in tests/ to add monkey directory to sys.path so test files recognize paths.
Codecov Report
@@ Coverage Diff @@
## develop #1109 +/- ##
===========================================
+ Coverage 29.01% 29.13% +0.11%
===========================================
Files 409 410 +1
Lines 12911 12934 +23
===========================================
+ Hits 3746 3768 +22
- Misses 9165 9166 +1
Continue to review full report at Codecov.
|
The pytest documentation states that the testpaths configuration option "Sets list of directories that should be searched ... when executing pytest from the rootdir directory." Since pytest is not executed from the rootdir directory, testpaths has no effect. Appending the "tests/" directory to the end of addopts reduces the time required to run the test suite by approximately 6 seconds.
(Run `pre-commit install --hook-type pre-push`)
Fixes #1102