Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
Nothing yet.
0.1.6
Fixed
Support
--runs_per_testwithoutpytest-randomlyso that it is easier to debug flaky tests. #24.
0.1.5
Fixed
0.1.4
Fixed
Restore
warnings.showwarningvalue after running pytest. #16.
0.1.3
Nothing yet.
0.1.3
Added
Support for
--test_runner_fail_fastflag
0.1.2
Changed
Return exit code 0 (then
bazelwill report targets asPASSED) if there are no tests collected and the test filter is specified.
Fixed
Backport rules_python_pytest PR#12 to correctly handle filenames in test filters. Whilst doing this work, we also ensure that more complex filters (
'test_foo or test_bar') also work.
0.1.1
Added
RTD setup for publishing docs about the project.
0.1.0
Fixed
Make the sharding detection implementation a little bit more robust and ensure that we are not telling bazel that we support sharding even if we don’t. Sharding requires extra
pytest-shardplugin to be present at runtime.
Added
The python code has more docstrings.
Short-circuit and do not try to access special bazel env variables if we are not running under
bazel(signified by theTEST_BAZELenv variable.Add more docs and installation guide.
0.0.8
Fixed
Actually pass the constructed args to
pytest.main.Fixed the
tmpdirusage on Linux. It seems thatbazelpre-creates the directory on Linux in the sandbox andpytesttmpdirbehaviour is different from MacOS and it starts failing.Ignore tests that do not belong to the current workspace, this is achieved by ignoring the
externalfolder at the root, which may be present if the users are not using--nolegacy_external_runfilesor somewhere deeper in the tree if they are using rules that create apy_librarylike target from awhl, which happens to extract files into asite-packagesdirectory. This makes the discovery robust enough to allowpytestto do its job itself and not need to provide the filenames to test manually.
0.0.7
Fixed
Fix the version bumping in the PyPI package when making a new release.
0.0.6
Fixed
Add a script for bumping the version number so that there is less chance to make mistakes.
0.0.4
Fixed
CI for generating release notes.
0.0.3
Added
Support
TEST_WARNINGS_OUTPUT_FILEis used to outputwarnings.warnusage.Support
TEST_TMPDIRto set the base tmpdir that affects thetmpdirfixture.Support setting the random number seed via
TEST_RANDOM_SEEDorTEST_RUN_NUMBER, whichever is present when executing.
0.0.2
Added
Code import from
rules_python_pytest.
Fixed
CI/CD to PyPI. 0.0.1 publish never worked because the GH action is running inside a docker image and it did not see the built artifacts.
0.0.1
Added
Initial project scaffold.
CI/CD pipeline to PyPI using Trusted Publishers.
A simple test that is currently failing.