Repository navigation
Add pytest_test support to rules_python. - #243
pstradomski wants to merge 6 commits into
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.