Skip to content

After suite failure not being reflected #11

@sswaroopgupta

Description

@sswaroopgupta

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

  1. 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
  1. 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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions