about summary refs log tree commit diff
path: root/library/test/src/formatters/pretty.rs
AgeCommit message (Collapse)AuthorLines
2025-08-04Add new `test::print_merged_doctests_times` used by rustdoc to display more ↵Guillaume Gomez-0/+10
detailed time information and add new `OutputFormatter::write_merged_doctests_times` method to handle it
2025-01-20test: add `#![warn(unreachable_pub)]`Urgau-13/+13
2024-07-29Reformat `use` declarations.Nicholas Nethercote-9/+7
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2023-03-15Implementing "<test_binary> --list --format json" #107307 #49359Partha P. Das-1/+28
2023-01-03Fix a few clippy lints in libtestJoshua Nelson-8/+8
- Remove unnecessary references and dereferences - Use `.contains` instead of `a <= x && x <= b` - Use `mem::take` instead of `mem::replace` where possible
2022-12-19Fix `uninlined_format_args` in libtestnils-1/+1
2022-04-05trivial cfg(bootstrap) changesPietro Albini-6/+1
2022-03-29Remove unnecessary .as_ref().Mara Bos-1/+1
2022-03-29Refactor after reviewAntonio Yang-3/+3
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
2022-03-11Show ignore message in console and json outputAntonio Yang-5/+14
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-8/+8
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2022-02-17Rollup merge of #93479 - smoelius:master, r=yaahcMatthias Krüger-1/+1
Use `optflag` for `--report-time` Essentially, what is described here: https://github.com/rust-lang/rust/issues/64888#issuecomment-1008047228 There is one difference. The comment proposes to add a `--report-time-color` option. This change instead uses libtest's existing `--color` option for that purpose.
2022-01-30Use `optflag` for `--report-time`Samuel E. Moelius III-1/+1
Essentially, what is described here: https://github.com/rust-lang/rust/issues/64888#issuecomment-1008047228 There is one difference. The comment proposes to add a `--report-time-color` option. This change instead uses libtest's existing `--color` option for that purpose.
2022-01-28remove allow_fail test flagyuhaixin.hx-21/+4
2021-09-29Implement #85440Samuel E. Moelius III-2/+7
2021-07-18Fix compilation errors.Charles Lew-0/+1
2021-05-18change based on reviewAliénore Bouttefeux-4/+3
2021-05-16remove mode for run and ignore testsAliénore Bouttefeux-1/+6
2021-05-09add bootstrap cfgAliénore Bouttefeux-1/+1
2021-05-03change based on reviewAliénore Bouttefeux-1/+1
2021-05-03proof of concept add test type on printsAliénore Bouttefeux-1/+1
2021-02-21test: Print test name only once on timeoutTomasz Miąsko-4/+0
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 ```
2020-11-27libtest: Print the total time taken to execute a test suiteJakob Schikowski-2/+9
2020-10-01Fix some clippy issuesJoshua Nelson-1/+1
Found while working on https://github.com/rust-lang/rust/pull/77351; these are just the ones that could be fixed automatically.
2020-07-27mv std libs to library/mark-0/+281