Skip to content

test: use native assert_stderr - #533

Merged
nieomylnieja merged 2 commits into
mainfrom
fix-assert-stderr-preserve-output
Aug 27, 2026
Merged

test: use native assert_stderr#533
nieomylnieja merged 2 commits into
mainfrom
fix-assert-stderr-preserve-output

Conversation

@nieomylnieja

@nieomylnieja nieomylnieja commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Motivation

The Bats image bundles a bats-assert version without assert_stderr, so the test suite maintained a copied wrapper. That wrapper replaced captured stdout with stderr and broke tests that checked both streams.

Summary

Pinned bats-assert 2.2.4 in the unit and end-to-end test images and removed the copied wrapper. The native assertion reads stderr without changing the captured stdout.

Testing

Verified in the rebuilt test image that native assert_stderr validates stderr while a following assert_output still receives the original stdout.

@github-actions github-actions Bot added bug Something isn't working patch labels Aug 26, 2026
@nieomylnieja nieomylnieja changed the title fix: preserve stdout in assert_stderr test: use native assert_stderr Aug 26, 2026
@github-actions github-actions Bot added the test label Aug 26, 2026
@nieomylnieja
nieomylnieja enabled auto-merge (squash) August 26, 2026 13:53
@nieomylnieja
nieomylnieja disabled auto-merge August 27, 2026 07:45
@nieomylnieja
nieomylnieja merged commit 483f099 into main Aug 27, 2026
6 checks passed
@nieomylnieja
nieomylnieja deleted the fix-assert-stderr-preserve-output branch August 27, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant