fix(test): output parallel test results independently (#15399)

This commit is contained in:
Nayeem Rahman 2022-08-04 17:38:40 +01:00 committed by GitHub
parent e1297b1a28
commit 34328690dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 160 additions and 111 deletions

View file

@ -374,13 +374,12 @@ impl TestRun {
.buffer_unordered(concurrent_jobs)
.collect::<Vec<Result<Result<(), AnyError>, tokio::task::JoinError>>>();
let mut reporter: Box<dyn test::TestReporter + Send> =
Box::new(LspTestReporter::new(
self,
client.clone(),
maybe_root_uri,
self.tests.clone(),
));
let mut reporter = Box::new(LspTestReporter::new(
self,
client.clone(),
maybe_root_uri,
self.tests.clone(),
));
let handler = {
tokio::task::spawn(async move {
@ -653,9 +652,7 @@ impl LspTestReporter {
},
));
}
}
impl test::TestReporter for LspTestReporter {
fn report_plan(&mut self, _plan: &test::TestPlan) {}
fn report_register(&mut self, desc: &test::TestDescription) {