We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
unittest.main()
sys.exit(pytest.main([__file__]))
I'm using pytest with bazel. To get bazel to pick up the fact that a pytest test has failed you need to put this at the end of every *_test.py file:
pytest
*_test.py
if __name__ == "__main__": sys.exit(pytest.main([__file__]))
(See bazelbuild/rules_python#240 )
It would be nice if this tool had an option to change the unittest-based snippet
unittest
if __name__ == "__main__": unittest.main()
with the pytest one.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using
pytest
with bazel. To get bazel to pick up the fact that apytest
test has failed you need to put this at the end of every*_test.py
file:(See bazelbuild/rules_python#240 )
It would be nice if this tool had an option to change the
unittest
-based snippetwith the pytest one.
The text was updated successfully, but these errors were encountered: