-
Notifications
You must be signed in to change notification settings - Fork 52
Modularize testing suite #278
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
Conversation
@@ -29,17 +30,25 @@ def check_mypy(): | |||
|
|||
|
|||
def test(): | |||
subprocess.run(["python", "-m", "pytest", "-n", "auto", "--log-level=CRITICAL"], check=True) | |||
test_cmd = ["python", "-m", "pytest", "-n", "auto", "--log-level=CRITICAL"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice because you can pass -n 0
to disable xdist and it'll override the earlier -n arg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments but LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements!
This PR introduces a few improvements to our test suite to make it more modular.
poetry run test tests/unit/test_fields.py
OR
This removes the need to set those ugly
SKIP_VECTORIZER=true
flags.And run without the API dependencies:
make test
OR