html-report icon indicating copy to clipboard operation
html-report copied to clipboard

When BeforeSpec fails the spec's scenario details are not getting displayed

Open sswaroopgupta opened this issue 8 years ago • 2 comments

Expected behavior When a before Spec fails, the spec's scenario details should be displayed.

Actual behavior When a before Spec fails, only the spec's comment is being displayed

**Steps to replicate

  1. Create a spec with multiple scenarios
  2. Add an implementation with failure in Before spec
  3. run the specs and check the HTML report
before_spec_failed

Version

Gauge version: 0.6.3.nightly-2016-11-06

Plugins
-------
csharp (0.9.2.nightly-2016-09-14)
html-report (2.2.0.nightly-2016-11-07)
java (0.5.1.nightly-2016-11-03)
ruby (0.3.2.nightly-2016-08-22)
spectacle (0.0.1)
xml-report (0.1.4.nightly-2016-07-25)

sswaroopgupta avatar Nov 07 '16 10:11 sswaroopgupta

Dev notes:

We will have to change Gauge core to send back unexecuted scenarios as a part of SuiteResult object. Currently, in case of a BeforeSpec failure, the result doesn't have the scenarios as they are not executed.

mahendrakariya avatar Nov 07 '16 10:11 mahendrakariya

Able to replicate in

Gauge version: 1.0.1.nightly-2018-07-31
Commit Hash: 4ae7c9a

Plugins
-------
html-report (4.0.5.nightly-2018-07-25)

sswaroopgupta avatar Aug 02 '18 04:08 sswaroopgupta