Skip to content

Conversation

@tragisch
Copy link

🍍

Summary

Add Bazel test filtering support via TESTBRIDGE_TEST_ONLY when UNITY_USE_COMMAND_LINE_ARGS is enabled, plus core tests and docs.

Why

Bazel’s --test_filter sets TESTBRIDGE_TEST_ONLY. Unity previously ignored this, so single‑test runs were not possible.

What Changed

Support TESTBRIDGE_TEST_ONLY in UnityParseOptions
Add Unity core tests for env‑based filtering and CLI override
Document new behavior and note UNITY_GETENV override option
Update UnityChangeLog.md

Notes

Requires UNITY_USE_COMMAND_LINE_ARGS

Allow Bazel --test_filter to select tests when
UNITY_USE_COMMAND_LINE_ARGS is enabled.

Remarks: Avoid to include <stdlib.h>. Instead used extern ... . Maybe stdlib.h is more compatible.
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>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant