Skip to content

Report @Ignore reason in InstrumentationResultPrinter#testIgnored - #2526

Merged
copybara-service[bot] merged 1 commit into
mainfrom
piper_1010793014
Nov 3, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
piper_1010793014

Conversation

@copybara-service

Copy link
Copy Markdown

Report @ignore reason in InstrumentationResultPrinter#testIgnored

When a test is ignored via @Ignore("reason"), JUnit provides the
reason in Description.getAnnotation(Ignore.class).value(), but
InstrumentationResultPrinter#testIgnored previously did not populate
REPORT_KEY_STACK in the status bundle.

Populate REPORT_KEY_STACK with the non-empty @Ignore value in
testIgnored(Description) so instrumentation listeners (such as
TradeFed and Atest) can display the ignore reason.

@copybara-service
copybara-service Bot force-pushed the piper_1010793014 branch 4 times, most recently from d184b94 to a523c70 Compare November 3, 2026 21:07
When a test is ignored via `@Ignore("reason")`, JUnit provides the
reason in `Description.getAnnotation(Ignore.class).value()`, but
`InstrumentationResultPrinter#testIgnored` previously did not populate
`REPORT_KEY_STACK` in the status bundle.

Populate `REPORT_KEY_STACK` with the non-empty `@Ignore` value in
`testIgnored(Description)` so instrumentation listeners (such as
TradeFed and Atest) can display the ignore reason.

PiperOrigin-RevId: 1013244028
@copybara-service
copybara-service Bot merged commit ce06a1a into main Nov 3, 2026
6 checks passed
@copybara-service
copybara-service Bot deleted the piper_1010793014 branch November 3, 2026 21:18
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