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 7 times, most recently from 4d7b6d3 to 4c7d707 Compare November 10, 2025 05:11
This test runner does a few things differ the base TextTestRunner:

1. It improves the behavior 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 4c7d707 to 15cdfb3 Compare November 10, 2025 16:37
@sbc100 sbc100 merged commit 7dd9069 into emscripten-core:main Nov 10, 2025
34 checks passed
@sbc100 sbc100 deleted the SingleLineTestResult branch November 10, 2025 17:45
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.

2 participants