Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 8, 2025

This test runner does a few things differ the base TextTestRunner:

  1. It improves the behviour of --buffer by also buffering/redirecting logging output that occurs during the test run.
  2. It displays all results on a single line, each result erasing the contents of the line before re-drawing it.
  3. It uses ANSI colors to the show the results.
  4. It should the progress as each results is displayed so its easy to see how far you are through the test suite "[XX/YY]"

Followups that I'm a planning:

  1. Enable --buffer by default which will then enable this runner by default
  2. Integrate with parallel running (for now you need use -j1 to see the effect of this runner)

I also updated parallel_testsuite.py use the same "XX/YY" progress rather than a percent.

See #25752, which implements similar thing in the parallel_runner. Hopefully once this change lands I can simplify #25752.

@sbc100 sbc100 requested review from juj and kripken November 8, 2025 19:01
@sbc100 sbc100 force-pushed the SingleLineTestResult branch from 2fe9a10 to a55844f Compare November 8, 2025 19:05
This test runner does a few things differ the base TextTestRunner:

1. It improves the behviour of `--buffer` by also buffering/redirecting
   logging output that occurs during the test run.
2. It displays all results on a single line, each result erasing the
   contents of the line before re-drawing it.
3. It uses ANSI colors to the show the results.
4. It should the progress as each results is displayed so its easy to
   see how far you are through the test suite "[XX/YY]"

I also updated parallel_testsuite.py use the same "XX/YY" progress
rather than a percent.

See emscripten-core#25752, which implements similar thing in the parallel_runner.
@sbc100 sbc100 force-pushed the SingleLineTestResult branch from a55844f to c2a9253 Compare November 8, 2025 19:30
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