libtest: print the type of test being run by lolbinarycat · Pull Request #144596 · rust-lang/rust (original) (raw)

The bar is pretty low since this is human output and there are no compatibility guarantees

As part of our work to stabilize the json output, we'll be wanting cargo test to do its own rendering, rather than using --format pretty, so the output will likely be dramatically re-imagined at that point (whether or when this affects doctest is dependent on if we are able to get rustdoc out of cargos way). Unsure how or if this will be preserved.

I suspect even libtest's output may change in the shuffle related to json output which would put this at risk.

If you feel this is important enough, I'd recommend engaging on assert-rs/libtest2#42. Note that this feels very coupled to the specific situations and would likely not be good to include in the json as-is.

If people are ok with the risk this gets reverted, I'm not seeing a reason within testing-devex to block this. Considering the lack of guarantees, we don't need an FCP.