Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After suite failure not being reflected #11

Open
sswaroopgupta opened this issue Nov 7, 2016 · 0 comments
Open

After suite failure not being reflected #11

sswaroopgupta opened this issue Nov 7, 2016 · 0 comments
Labels

Comments

@sswaroopgupta
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant