Expected behavior
There should be some indication that the after suite hook has failed
Actual behavior
There is no indication of this failure.
Steps to replicate
- Create a spec
Specification Heading
=====================
Created by sswaroop on 11/7/16
This is an executable specification file which follows markdown syntax.
Every heading in this file denotes a scenario. Every bulleted point denotes a step.
Scenario Heading
----------------
* a passing specification
Scenario Heading1
----------------
* a passing specification
Scenario Heading2
----------------
* a passing specification
- Create an implementation
import com.thoughtworks.gauge.Step;
public class TestCase{
@Step("a passing specification")
public void implementation1() {
}
@AfterSuite
public void AfterSuite() throws Exception {
throw new Exception("sdf");
}
}
3. Run the specification and check the xml-report.
Sample result
<testsuites>
<testsuite id="1" tests="3" failures="0" package="/Users/sswaroop/work/gauge-test-apps/projects/web-apps-e2e/specs/spring-mvc/passing.spec" time="0.000" timestamp="2016-11-07T14:44:22" name="Specification Heading" errors="0" hostname="inblr-sswaroop.local">
<properties></properties>
<testcase classname="Specification Heading" name="Scenario Heading" time="0.000"></testcase>
<testcase classname="Specification Heading" name="Scenario Heading1" time="0.000"></testcase>
<testcase classname="Specification Heading" name="Scenario Heading2" time="0.000"></testcase>
<system-out></system-out>
<system-err></system-err>
</testsuite>
</testsuites>
Expected behavior
There should be some indication that the after suite hook has failed
Actual behavior
There is no indication of this failure.
Steps to replicate
Sample result