Skip to content

Commit

Permalink
Fix failure counts for tests with subtest where the top level fails t…
Browse files Browse the repository at this point in the history
…o render the template

see #61772
  • Loading branch information
martinrode committed Jul 19, 2021
1 parent 501ee2a commit 6a66801
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/lib/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ func (r *ReportElement) Leave(result bool) {

if len(r.SubTests) == 0 {
r.TestCount++
if !result {
r.Failures++
}
}
if !result {
r.Failures++
}

r.ExecutionTime = time.Since(r.StartTime)
}

Expand Down

0 comments on commit 6a66801

Please sign in to comment.