From 82c3d5a10ec2cdacd1c3f10e8a6c6bd55afbe22c Mon Sep 17 00:00:00 2001 From: Dev Catalin <20538711+devcatalin@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:04:15 +0300 Subject: [PATCH] chore: add more junit logging --- cmd/testworkflow-toolkit/artifacts/junit_post_processor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go b/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go index f8b1294f99..2a9559cf02 100644 --- a/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go +++ b/cmd/testworkflow-toolkit/artifacts/junit_post_processor.go @@ -63,6 +63,7 @@ func (p *JUnitPostProcessor) Add(path string) error { } ok := isJUnitReport(xmlData) if !ok { + fmt.Printf("Skipping non-JUnit report: %s\n", ui.LightCyan(path)) return nil } fmt.Printf("Processing JUnit report: %s\n", ui.LightCyan(path)) @@ -80,6 +81,7 @@ func (p *JUnitPostProcessor) sendJUnitReport(path string, report []byte) error { } ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) defer cancel() + fmt.Printf("Sending JUnit report to the cloud: %s\n", ui.LightCyan(path)) _, err := p.client.Execute(ctx, testworkflow.CmdTestWorkflowExecutionAddReport, &testworkflow.ExecutionsAddReportRequest{ ID: env.ExecutionId(), WorkflowName: env.WorkflowName(),