-
Notifications
You must be signed in to change notification settings - Fork 76
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
Restrict some Pytest options to 'make test', not all Pytest runs #839
Conversation
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.
Thanks for hushing tests coverage on pytest
@Morendil! ❤️
I would reset
--exitfirst
to the previous situation. Still, I'm too happy to limit test coverage to request changes.
Makefile
Outdated
@@ -25,7 +25,7 @@ format-style: | |||
autopep8 `git ls-files | grep "\.py$$"` | |||
|
|||
test: clean check-syntax-errors check-style | |||
pytest | |||
env PYTEST_ADDOPTS="--cov=openfisca_core --exitfirst" pytest |
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.
🙌 for limiting coverage calls!
Not a big fan of --exitfirst
(stopping at first error) on this tag though as, make test
is our only simple command to get an overview of the situation (linting, all tests statuses...).
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.
…which it was not giving us, previously!
You've convinced me, let's maximize make test
, and fail fast only in CI.
Technical changes