Skip to content

Conversation

@ThomasWaldmann
Copy link
Contributor

Previously, the Bash.test helper did not capture stdout or stderr,
causing them to be None. This meant that the assertion not stdout
was always true (vacuously), and if a test failed, the error message
contained no output.

Changed the assertion and also the assertion failure message to not
hide the "None/None" issue.

This commit adds output capturing to subprocess.Popen and decodes
it as utf-8, ensuring that test failures provide useful debugging
information.

Previously, the `Bash.test` helper did not capture stdout or stderr,
causing them to be None. This meant that the assertion `not stdout`
was always true (vacuously), and if a test failed, the error message
contained no output.

Changed the assertion and also the assertion failure message to not
hide the "None/None" issue.

This commit adds output capturing to `subprocess.Popen` and decodes
it as utf-8, ensuring that test failures provide useful debugging
information.
@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.18%. Comparing base (fe5f177) to head (201bf5c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #209   +/-   ##
=======================================
  Coverage   89.18%   89.18%           
=======================================
  Files           3        3           
  Lines         370      370           
=======================================
  Hits          330      330           
  Misses         40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ThomasWaldmann
Copy link
Contributor Author

Brought to you by google antigravity. :-)

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