rust/library/test/src
Ed Page c1a31d8103 Deprecate RUST_TEST_* env variables
This is a documentation-only deprecation for now.
Over time, we can
- warn and then remove on use of unstable environment variables
- warn on use of stable environment variables (no plan to remove due to
  compatibility)

Longer term, we expect test runners, like `cargo test`, to provide the
necessary mechanisms for environmental or persistent configuration (e.g.
using cargo config which supports `.cargo/config.toml` as well as
environment variables).

This would include:
- `RUST_TEST_THREADS`
- `RUST_TEST_NOCAPTURE`
- `RUST_TEST_SHUFFLE` (unstable)
- `RUST_TEST_SHUFFLE_SEED` (unstable)

The primary outcomes for this change are
- Reducing the scope of what is expected for custom test harnesses to
  implement
- Reduce the mechanisms that test runners, like `cargo test`, are
  expected to track when they are being bypassed to protect against
  negative interactions, e.g.  `RUST_TEST_NOCAPTURE=1` when json output
  is being read.
2025-08-11 15:06:32 -05:00
..
formatters Add new test::print_merged_doctests_times used by rustdoc to display more detailed time information and add new OutputFormatter::write_merged_doctests_times method to handle it 2025-08-04 16:06:56 +02:00
helpers test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
stats test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
term Rollup merge of #136844 - thaliaarchi:const-io-error, r=ChrisDenton 2025-02-17 06:37:37 +01:00
bench.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
cli.rs Deprecate RUST_TEST_* env variables 2025-08-11 15:06:32 -05:00
console.rs Add new test::print_merged_doctests_times used by rustdoc to display more detailed time information and add new OutputFormatter::write_merged_doctests_times method to handle it 2025-08-04 16:06:56 +02:00
event.rs Do fewer passes and generally be more efficient when filtering tests 2022-10-27 21:34:56 -04:00
lib.rs Add new test::print_merged_doctests_times used by rustdoc to display more detailed time information and add new OutputFormatter::write_merged_doctests_times method to handle it 2025-08-04 16:06:56 +02:00
options.rs test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
stats.rs Fix doc nits 2024-07-26 13:26:33 +01:00
term.rs test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
test_result.rs Remove backticks from ShouldPanic::YesWithMessage's TrFailedMsg 2025-04-28 21:40:29 +02:00
tests.rs Remove backticks from ShouldPanic::YesWithMessage's TrFailedMsg 2025-04-28 21:40:29 +02:00
time.rs test: add #![warn(unreachable_pub)] 2025-01-20 18:46:29 +01:00
types.rs Reduce merged doctest source code size 2024-08-13 20:14:56 +02:00