Skip to content

Commit

Permalink
Merge pull request #21 from programmfabrik/hotfix/exitcode
Browse files Browse the repository at this point in the history
Exit Code always 0 even with test errors
  • Loading branch information
martinrode authored Jul 3, 2020
2 parents b422a56 + ed3d193 commit e913e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lib/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func (r Report) GetTestResult(parsingFunction func(baseResult *ReportElement) []

//DidFail, Check if the testsuite did produce failures
func (r Report) DidFail() bool {

if r.root.Failures > 0 {
aggRes := r.root.getTestResult()
if aggRes.Failures > 0 {
return true
} else {
return false
Expand Down

0 comments on commit e913e1c

Please sign in to comment.