Skip to content

Commit 96c7c9c

Browse files
committed
Fix already_failing_tests_are_detected_before_running_mutants
The test failure error message changed slightly on nightly to include the thread id, which broke the test assertions.
1 parent 889a672 commit 96c7c9c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# cargo-mutants changelog
22

3+
## 25.3.1 2025-08-10
4+
5+
- Fixed: cargo-mutants' own tests were failing on nightly due to a change in the format of messages emitted by tests.
6+
37
## 25.3.0 2025-08-10
48

59
- New: A specific clearer error if a valid non-empty diff changes no Rust source files, and so matches no mutants. Thanks to @brunoerg.

tests/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ fn already_failing_tests_are_detected_before_running_mutants() {
618618
.stdout(
619619
predicate::str::contains("running 1 test\ntest test_factorial ... FAILED")
620620
.normalize()
621-
.and(predicate::str::contains("thread 'test_factorial' panicked"))
621+
.and(predicate::str::contains("assertion `left == right` failed"))
622622
.and(predicate::str::contains("72")) // the failing value should be in the output
623623
.and(predicate::str::contains("lib.rs:11:5"))
624624
.and(

0 commit comments

Comments
 (0)