Unify the condensed test output of rustdoc-gui and other test suites

I noticed that the output formats are slightly different when run interactively (condensed output).

Both of them use rows of dots with a X/TOTAL at the end of the line, but they're subtly different, most test suites use long lines with colored dots and no parenthesis, while rustdoc-gui uses short lines with no color and the numeric progress is parenthisized.

This means that this functionality is likely implemented twice. I'm not sure how much code this constitutes, but it might be nice to make them use the same underlying code, either by moving that code to a shared library, simple refactoring, or changing IPC protocols so compiletest is always the one printing the dots.

I would guess rustdoc-gui uses libtest's implementation of this, while the other test suites ask libtest to emit json and then bootstrap does the formatting. This is done to also get the errors in json format for the CI test change reports. In any case compiletest is actually moving away from libtest to it's own test harness which only supports the json format. When rustdoc is responsible for printing the output, it would still use libtest.

1 Like

rustdoc-gui uses its own custom scripting language and stuff, so i'm not sure.

rustdoc-gui uses an entirely separate test harness written in NodeJS.

1 Like