Skip to content

Commit

Permalink
Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Jul 17, 2024
1 parent e1125b1 commit 9b61544
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions proptest/src/test_runner/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,8 @@ impl TestRunner {
#[cfg(feature = "std")]
let start_time = time::Instant::now();

verbose_message!(self, TRACE, "Starting shrinking");

if case.simplify() {
loop {
#[cfg(feature = "std")]
Expand Down Expand Up @@ -858,12 +860,24 @@ impl TestRunner {
// the function under test is acceptable.
Ok(_) | Err(TestCaseError::Reject(..)) => {
if !case.complicate() {
verbose_message!(
self,
TRACE,
"Cannot complicate further"
);

break;
}
}
Err(TestCaseError::Fail(why)) => {
last_failure = Some(why);
if !case.simplify() {
verbose_message!(
self,
TRACE,
"Cannot simplify further"
);

break;
}
}
Expand Down

0 comments on commit 9b61544

Please sign in to comment.