From f22de6008bd3b984e3be30a68a5530a5beebb6ce Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 28 Nov 2026 08:13:45 -0800 Subject: [PATCH] testkit: document test_name for forked runs of prop::config `config` keeps the fork mode that `PROPTEST_FORK` or `PROPTEST_TIMEOUT` turns on. The doc comment now says that `TestRunner::run` then needs `test_name`, which the named-test form of `proptest!` sets. --- crates/testkit/src/prop.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/testkit/src/prop.rs b/crates/testkit/src/prop.rs index 145a7ae491..a42ca18246 100644 --- a/crates/testkit/src/prop.rs +++ b/crates/testkit/src/prop.rs @@ -26,7 +26,10 @@ pub const SEED: u64 = 0x5eed_9a7f; /// A proptest configuration that runs `cases` cases from [`SEED`] with failure persistence off. /// /// `PROPTEST_CASES` replaces `cases` and `PROPTEST_RNG_SEED` replaces the seed when either is set. -/// Pass the result to `#![proptest_config(...)]` or to `TestRunner::new`. +/// Pass the result to `#![proptest_config(...)]` or to `TestRunner::new`. When `PROPTEST_FORK` or +/// `PROPTEST_TIMEOUT` turns on fork mode, `TestRunner::run` needs `test_name` set to the test's fully +/// qualified name. The named-test form of `proptest!` sets it, and drawing values without `run` does +/// not need it. /// /// # Panics ///