summaryrefslogtreecommitdiff
path: root/cli/tools/test/reporters/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/test/reporters/common.rs')
-rw-r--r--cli/tools/test/reporters/common.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/cli/tools/test/reporters/common.rs b/cli/tools/test/reporters/common.rs
index 3d9cdba46..1dc879667 100644
--- a/cli/tools/test/reporters/common.rs
+++ b/cli/tools/test/reporters/common.rs
@@ -33,7 +33,10 @@ pub(super) fn format_test_step_ancestry(
result
}
-pub fn format_test_for_summary(cwd: &Url, desc: &TestDescription) -> String {
+pub fn format_test_for_summary(
+ cwd: &Url,
+ desc: &TestFailureDescription,
+) -> String {
format!(
"{} {}",
&desc.name,
@@ -78,7 +81,7 @@ pub(super) fn report_sigint(
let mut formatted_pending = BTreeSet::new();
for id in tests_pending {
if let Some(desc) = tests.get(id) {
- formatted_pending.insert(format_test_for_summary(cwd, desc));
+ formatted_pending.insert(format_test_for_summary(cwd, &desc.into()));
}
if let Some(desc) = test_steps.get(id) {
formatted_pending
@@ -107,7 +110,10 @@ pub(super) fn report_summary(
#[allow(clippy::type_complexity)] // Type alias doesn't look better here
let mut failures_by_origin: BTreeMap<
String,
- (Vec<(&TestDescription, &TestFailure)>, Option<&JsError>),
+ (
+ Vec<(&TestFailureDescription, &TestFailure)>,
+ Option<&JsError>,
+ ),
> = BTreeMap::default();
let mut failure_titles = vec![];
for (description, failure) in &summary.failures {