Skip to content

Add the Yields() conformance matcher that reports results to the TestManager. - #30281

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_984198662
Draft

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_984198662

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Add the Yields() conformance matcher that reports results to the TestManager.

Every gtest-based conformance test ends in EXPECT_THAT(result, Yields(m)).
The leaf matchers stay pure, and Yields() is the one place with side
effects. It reports the outcome to the TestManager once per test and
turns the failure list into the gtest verdict, so a listed failure passes
and an unexpected success fails. A listed test the testee skips fails,
which is stricter than the old runner.

The matchers find the TestManager through GetGlobalTestManager(), which
is declared here and defined by the conformance binary or by the
matchers' own unit test.

@copybara-service
copybara-service Bot force-pushed the test_984198662 branch 3 times, most recently from 12ac355 to 10d2974 Compare October 3, 2026 20:09
…Manager.

Every gtest-based conformance test ends in EXPECT_THAT(result, Yields(m)).
The leaf matchers stay pure, and Yields() is the one place with side
effects. It reports the outcome to the TestManager once per test and
turns the failure list into the gtest verdict, so a listed failure passes
and an unexpected success fails. A listed test the testee skips fails,
which is stricter than the old runner.

The matchers find the TestManager through GetGlobalTestManager(), which
is declared here and defined by the conformance binary or by the
matchers' own unit test.

PiperOrigin-RevId: 984198662

This branch has not been deployed

No deployments
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