rust/library/test/src
Yuki Okushi d7fb4de791
Rollup merge of #82349 - tmiasko:pretty-test-timeout, r=Mark-Simulacrum
test: Print test name only once on timeout

Pretty formatter when using multiple test threads displays test name twice on
timeout event. This implicitly suggest that those are two different events,
while in fact they are always printed together.

Print test name only once.

Before:

```
running 3 tests
test src/lib.rs - c (line 16) ... ok
test src/lib.rs - a (line 3) ... ok
test src/lib.rs - b (line 9) ... test src/lib.rs - b (line 9) has been running for over 60 seconds
test src/lib.rs - b (line 9) ... ok
```

After:

```
running 3 tests
test src/lib.rs - c (line 16) ... ok
test src/lib.rs - a (line 3) ... ok
test src/lib.rs - b (line 9) has been running for over 60 seconds
test src/lib.rs - b (line 9) ... ok
```
2021-02-21 15:26:50 +09:00
..
formatters test: Print test name only once on timeout 2021-02-21 00:00:00 +00:00
helpers Remove io::LocalOutput and use Arc<Mutex<dyn>> for local streams. 2020-11-10 21:57:05 +01:00
stats mv std libs to library/ 2020-07-27 19:51:13 -05:00
bench.rs Merge set_panic and set_print into set_output_capture. 2020-11-10 21:58:13 +01:00
cli.rs Rollup merge of #81356 - ehuss:libtest-filters, r=m-ou-se 2021-02-08 19:28:13 +01:00
console.rs libtest: Print the total time taken to execute a test suite 2020-11-27 17:53:59 +01:00
event.rs Remove unsafe impl Send for CompletedTest & TestResult 2021-02-19 00:00:00 +00:00
lib.rs Rollup merge of #82274 - andersk:test-unwrap, r=Mark-Simulacrum 2021-02-19 02:49:13 +01:00
options.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
stats.rs Fix some clippy issues 2020-10-01 01:34:38 -04:00
test_result.rs Remove unsafe impl Send for CompletedTest & TestResult 2021-02-19 00:00:00 +00:00
tests.rs Rollup merge of #81356 - ehuss:libtest-filters, r=m-ou-se 2021-02-08 19:28:13 +01:00
time.rs Dogfood 'str_split_once()` in the std lib 2020-12-07 14:24:05 -07:00
types.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00