Skip to content

Commit 8f624aa

Browse files
committed
[Docs] Document Bazel test_filter support
Explain that Unity honors TESTBRIDGE_TEST_ONLY when UNITY_USE_COMMAND_LINE_ARGS is enabled and that UNITY_GETENV can be overridden to avoid <stdlib.h>.
1 parent e783413 commit 8f624aa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/UnityChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Prior to 2008, the project was an internal project and not released to the publi
1818
New Features:
1919

2020
- Add `-n` comand line option as strict matcher again
21+
- Support `TESTBRIDGE_TEST_ONLY` for Bazel `--test_filter` when `UNITY_USE_COMMAND_LINE_ARGS` is enabled
2122

2223
Significant Bugfixes:
2324

docs/UnityHelperScriptsGuide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ These are the available options:
231231
| `-v` | increase Verbosity |
232232
| `-x NAME` | eXclude tests whose name includes NAME |
233233

234+
Unity also supports the `TESTBRIDGE_TEST_ONLY` environment variable (used by
235+
Bazel's `--test_filter`) when `UNITY_USE_COMMAND_LINE_ARGS` is enabled.
236+
If you prefer to avoid including `<stdlib.h>`, define `UNITY_GETENV` to your
237+
own `getenv`-compatible function (for example, via `unity_config.h`).
238+
234239
##### `:setup_name`
235240

236241
Override the default test `setUp` function name.

0 commit comments

Comments
 (0)