Skip to content

Commit

Permalink
chore: add more junit logging
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Oct 1, 2024
1 parent d304e01 commit 82c3d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/testworkflow-toolkit/artifacts/junit_post_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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(),
Expand Down

0 comments on commit 82c3d5a

Please sign in to comment.