summaryrefslogtreecommitdiff
path: root/cli/lsp/testing
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/testing')
-rw-r--r--cli/lsp/testing/execution.rs24
1 files changed, 5 insertions, 19 deletions
diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs
index ee182c690..44a0729de 100644
--- a/cli/lsp/testing/execution.rs
+++ b/cli/lsp/testing/execution.rs
@@ -439,9 +439,6 @@ impl TestRun {
test::TestStepResult::Failed(_) => {
summary.failed_steps += 1;
}
- test::TestStepResult::Pending(_) => {
- summary.pending_steps += 1;
- }
}
reporter.report_step_result(
test_steps.get(&id).unwrap(),
@@ -449,6 +446,7 @@ impl TestRun {
duration,
);
}
+ test::TestEvent::Sigint => {}
}
}
@@ -716,11 +714,10 @@ impl LspTestReporter {
test: desc.into(),
})
}
- test::TestResult::Failed(js_error) => {
- let err_string = test::format_test_error(js_error);
+ test::TestResult::Failed(failure) => {
self.progress(lsp_custom::TestRunProgressMessage::Failed {
test: desc.into(),
- messages: as_test_messages(err_string, false),
+ messages: as_test_messages(failure.to_string(), false),
duration: Some(elapsed as u32),
})
}
@@ -830,24 +827,13 @@ impl LspTestReporter {
test: desc.into(),
})
}
- test::TestStepResult::Failed(js_error) => {
- let messages = if let Some(js_error) = js_error {
- let err_string = test::format_test_error(js_error);
- as_test_messages(err_string, false)
- } else {
- vec![]
- };
+ test::TestStepResult::Failed(failure) => {
self.progress(lsp_custom::TestRunProgressMessage::Failed {
test: desc.into(),
- messages,
+ messages: as_test_messages(failure.to_string(), false),
duration: Some(elapsed as u32),
})
}
- test::TestStepResult::Pending(_) => {
- self.progress(lsp_custom::TestRunProgressMessage::Enqueued {
- test: desc.into(),
- })
- }
}
}