diff options
| author | Martin Hořeňovský | 2025-09-27 23:20:52 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-09-28 10:48:08 +0200 |
| commit | 91b3b3bf4057e2a7e41bf1edd3e2c68b31bb3747 (patch) | |
| tree | d266f60fdf0d2c092e198ff498557d31b674b704 /docs | |
| parent | a00d6544375e92ccedec786aaee47ac392ea4900 (diff) | |
| download | catch3-91b3b3bf4057e2a7e41bf1edd3e2c68b31bb3747.tar.gz | |
Support Bazel's TEST_RANDOM_SEED
As with other Bazel env vars, it overrides the corresponding CLI
parameter if both are set.
Closes #3021
Closes #3024
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ci-and-misc.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ci-and-misc.md b/docs/ci-and-misc.md index d2ef3fd7..1b57a912 100644 --- a/docs/ci-and-misc.md +++ b/docs/ci-and-misc.md @@ -67,12 +67,13 @@ test execution. Specifically it understands * Test filtering via `TESTBRIDGE_TEST_ONLY` * Test sharding via `TEST_SHARD_INDEX`, `TEST_TOTAL_SHARDS`, and `TEST_SHARD_STATUS_FILE` * Creating a file to signal premature test exit via `TEST_PREMATURE_EXIT_FILE` + * Setting the RNG seed via `TEST_RANDOM_SEED` > Support for `XML_OUTPUT_FILE` was [introduced](https://github.com/catchorg/Catch2/pull/2399) in Catch2 3.0.1 > Support for `TESTBRIDGE_TEST_ONLY` and sharding was introduced in Catch2 3.2.0 -> Support for `TEST_PREMATURE_EXIT_FILE` was introduced in Catch2 X.Y.Z +> Support for `TEST_PREMATURE_EXIT_FILE` and `TEST_RANDOM_SEED` was introduced in Catch2 X.Y.Z This integration is enabled via either a [compile time configuration option](configuration.md#bazel-support), or via `BAZEL_TEST` environment @@ -80,6 +81,9 @@ variable set to "1". > Support for `BAZEL_TEST` was [introduced](https://github.com/catchorg/Catch2/pull/2459) in Catch2 3.1.0 +Note that if both the Bazel environment var and command line option for +something are used, the environment variable wins. + ## Low-level tools |