diff options
| author | bors <bors@rust-lang.org> | 2021-06-06 09:13:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-06 09:13:59 +0000 |
| commit | 3740ba2a7dd965ca45db500ebf7ad580a7812c07 (patch) | |
| tree | 03e3f6532aa38d33f9ce21646c4316593f213a10 /compiler/rustc_interface/src | |
| parent | 9a576175cc9a0aecb85d0764a4f66ee29e26e155 (diff) | |
| parent | 6de13c3ffc969ceac87f2a8466c5cd850288721c (diff) | |
| download | rust-3740ba2a7dd965ca45db500ebf7ad580a7812c07.tar.gz rust-3740ba2a7dd965ca45db500ebf7ad580a7812c07.zip | |
Auto merge of #84863 - ABouttefeux:libtest, r=m-ou-se
Show test type during prints Test output can sometimes be confusing. For example doctest with the no_run argument are displayed the same way than test that are run. During #83857 I got the feedback that test output can be confusing. For the moment test output is ``` test $DIR/test-type.rs - f (line 12) ... ignored test $DIR/test-type.rs - f (line 15) ... ok test $DIR/test-type.rs - f (line 21) ... ok test $DIR/test-type.rs - f (line 6) ... ok ``` I propose to change output by indicating the test type as ``` test $DIR/test-type.rs - f (line 12) ... ignored test $DIR/test-type.rs - f (line 15) - compile ... ok test $DIR/test-type.rs - f (line 21) - compile fail ... ok test $DIR/test-type.rs - f (line 6) ... ok ``` by indicating the test type after the test name (and in the case of doctest after the function name and line) and before the "...". ------------ Note: this is a proof of concept, the implementation is probably not optimal as the properties added in `TestDesc` are only use in the display and does not represent actual change of behavior, maybe `TestType::DocTest` could have fields
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
