Skip to content

Commit

Permalink
Send ConceptEnd notification when concept step fails and the concept …
Browse files Browse the repository at this point in the history
…is finishing (#2461)

Signed-off-by: Piotr Nestorow <piotr.nestorow@systemverification.com>
  • Loading branch information
PiotrNestor authored Feb 2, 2024
1 parent b55b734 commit 6475093
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions execution/scenarioExecutor.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ func (e *scenarioExecutor) executeConcept(item *gauge.Step, protoConcept *gauge_
if recoverable {
continue
}
// The concept is finishing after a step failure
// Restore the Concept step data in the Execution info that is sent to plugins
e.currentExecutionInfo.CurrentStep = &gauge_messages.StepInfo{Step: stepRequest, IsFailed: false}
defer event.Notify(event.NewExecutionEvent(event.ConceptEnd, nil, cptResult, e.stream, e.currentExecutionInfo))
defer e.notifyAfterConcept(scenarioResult)

return cptResult
}
}
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

// CurrentGaugeVersion represents the current version of Gauge
var CurrentGaugeVersion = &Version{1, 6, 0}
var CurrentGaugeVersion = &Version{1, 6, 1}

// BuildMetadata represents build information of current release (e.g, nightly build information)
var BuildMetadata = ""
Expand Down

0 comments on commit 6475093

Please sign in to comment.