about summary refs log tree commit diff
path: root/library/test/src/formatters/terse.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-10/+10
2024-07-29Reformat `use` declarations.Nicholas Nethercote-10/+7
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-03-07Rust is a proper name: rust → RustRalf Jung-1/+1
2024-03-04libtest: Print the names of failed tests eagerlyjyn-7/+28
Previously, libtest would wait until all tests finished running to print the progress, which made it annoying to run many tests at once (since you don't know which have failed). Change it to print the names as soon as they fail. This also adds a test for the terse output; previously it was untested.
2023-03-15Implementing "<test_binary> --list --format json" #107307 #49359Partha P. Das-1/+13
2023-01-22Print why a test was ignored if it's the only test specified.Lenko Donchev-0/+9
2023-01-03Fix a few clippy lints in libtestJoshua Nelson-10/+10
- Remove unnecessary references and dereferences - Use `.contains` instead of `a <= x && x <= b` - Use `mem::take` instead of `mem::replace` where possible
2022-04-06Improve terse test output.Nicholas Nethercote-3/+4
The current terse output gives 112 chars per line, which causes wraparound for people using 100 char wide terminals, which is very common. This commit changes it to be exactly 100 wide, which makes the output look much nicer.
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-7/+7
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-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
2020-11-27libtest: Print the total time taken to execute a test suiteJakob Schikowski-2/+9
2020-10-01Fix some clippy issuesJoshua Nelson-2/+2
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/+258