Skip to content

Commit ab28f3c

Browse files
Copilotsourcefrog
andcommitted
Strip cargo_mutants_version in outcome_json_counts to avoid brittle version assertions
Co-authored-by: sourcefrog <346355+sourcefrog@users.noreply.github.com>
1 parent 76f340c commit ab28f3c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

tests/check_build.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ fn small_well_tested_tree_check_only() {
3737
"missed": 0,
3838
"timeout": 0,
3939
"total_mutants": 4,
40-
"cargo_mutants_version": "25.3.1",
4140
})
4241
);
4342
}
@@ -60,7 +59,6 @@ fn small_well_tested_tree_check_only_shuffled() {
6059
"missed": 0,
6160
"timeout": 0,
6261
"total_mutants": 4,
63-
"cargo_mutants_version": "25.3.1",
6462
})
6563
);
6664
}
@@ -111,7 +109,6 @@ fn check_succeeds_in_tree_that_builds_but_fails_tests() {
111109
"timeout": 0,
112110
"unviable": 0,
113111
"total_mutants": 4,
114-
"cargo_mutants_version": "25.3.1",
115112
})
116113
);
117114
}
@@ -147,7 +144,6 @@ fn check_tree_with_mutants_skip() {
147144
"timeout": 0,
148145
"unviable": 0,
149146
"total_mutants": 6,
150-
"cargo_mutants_version": "25.3.1",
151147
})
152148
);
153149
}
@@ -172,7 +168,6 @@ fn check_tree_where_build_fails() {
172168
"timeout": 0,
173169
"unviable": 0,
174170
"total_mutants": 0,
175-
"cargo_mutants_version": "25.3.1",
176171
})
177172
);
178173
}
@@ -209,7 +204,6 @@ fn unviable_mutation_of_struct_with_no_default() {
209204
"missed": 0,
210205
"timeout": 0,
211206
"total_mutants": 1,
212-
"cargo_mutants_version": "25.3.1",
213207
})
214208
);
215209
}

tests/util/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,6 @@ pub fn outcome_json_counts(tmp_src_dir: &TempDir) -> serde_json::Value {
159159
outcomes_object.remove("outcomes").unwrap();
160160
outcomes_object.remove("end_time").unwrap();
161161
outcomes_object.remove("start_time").unwrap();
162+
outcomes_object.remove("cargo_mutants_version").unwrap();
162163
outcomes
163164
}

0 commit comments

Comments
 (0)