From 6475093c18d08e0ac8c9abec498067c3e3b8306d Mon Sep 17 00:00:00 2001 From: Piotr Nestorow Date: Fri, 2 Feb 2024 07:09:54 +0100 Subject: [PATCH] Send ConceptEnd notification when concept step fails and the concept is finishing (#2461) Signed-off-by: Piotr Nestorow --- execution/scenarioExecutor.go | 6 ++++++ version/version.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/execution/scenarioExecutor.go b/execution/scenarioExecutor.go index 454183c84..dd439e7b7 100644 --- a/execution/scenarioExecutor.go +++ b/execution/scenarioExecutor.go @@ -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 } } diff --git a/version/version.go b/version/version.go index 673c83f85..028212ab2 100644 --- a/version/version.go +++ b/version/version.go @@ -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 = ""