Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lintool
Copy link
Member

@lintool lintool commented Nov 21, 2025

Addresses #3042 (comment)

Previous implementation had StdOutStdErrRedirectableLuceneTestCase and StdOutStdErrRedirectableTestCase, one of which extends LuceneTestCase. All but two cases can extend the Lucene version, but for the two exceptions (due to weird concurrency bugs), I had to duplicate the code that save/restores stdout/stdrr. It was either that or have two separate classes.

@lintool lintool requested a review from sahel-sh November 21, 2025 01:52
@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.58%. Comparing base (03ae0b0) to head (4beab37).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #3048   +/-   ##
=========================================
  Coverage     72.58%   72.58%           
  Complexity     1342     1342           
=========================================
  Files           187      187           
  Lines         12648    12648           
  Branches       1450     1450           
=========================================
  Hits           9180     9180           
  Misses         2915     2915           
  Partials        553      553           

☔ 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.

@lintool
Copy link
Member Author

lintool commented Nov 21, 2025

Addressed comments, thanks!

  • implemented two-level hierarchy as suggested
  • cleanUp -> tearDown

@lintool lintool requested a review from sahel-sh November 21, 2025 03:22
Copy link
Member

@sahel-sh sahel-sh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@lintool lintool merged commit 7588b23 into master Nov 21, 2025
3 checks passed
@lintool lintool deleted the tests-refactoring branch November 21, 2025 15:14
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.

3 participants