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
Add pytest_test support to rules_python. #243
Conversation
Is this something that could be reviewed and merged some time soon? We would love to use pytest with Bazel! |
i personally don't think this should be part of |
We already use PyTest with Bazel. It works with the standard import pytest
import os
import sys
...
if __name__ == "__main__":
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.exit(pytest.main([dir_path, "-W", "ignore::DeprecationWarning"])) Compared with other issues we have in our Python-Bazel codebase, this is a minor annoyance. |
Withdrawing as it seems there's no consensus this is the right approach. |
Hi @ali5h , |
Ported from https://bitbucket.org/pstradomski/rules_python_extra.
Fixes #240.