{"action":"closed","issue":{"url":"https://api.github.com/repos/serenity-bdd/serenity-jbehave/issues/104","repository_url":"https://api.github.com/repos/serenity-bdd/serenity-jbehave","labels_url":"https://api.github.com/repos/serenity-bdd/serenity-jbehave/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/serenity-bdd/serenity-jbehave/issues/104/comments","events_url":"https://api.github.com/repos/serenity-bdd/serenity-jbehave/issues/104/events","html_url":"https://github.com/serenity-bdd/serenity-jbehave/issues/104","id":177415399,"number":104,"title":"Subsequent scenarios are skipped if the first one fails","user":{"login":"igor-rubis","id":6901769,"avatar_url":"https://avatars.githubusercontent.com/u/6901769?v=3","gravatar_id":"","url":"https://api.github.com/users/igor-rubis","html_url":"https://github.com/igor-rubis","followers_url":"https://api.github.com/users/igor-rubis/followers","following_url":"https://api.github.com/users/igor-rubis/following{/other_user}","gists_url":"https://api.github.com/users/igor-rubis/gists{/gist_id}","starred_url":"https://api.github.com/users/igor-rubis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igor-rubis/subscriptions","organizations_url":"https://api.github.com/users/igor-rubis/orgs","repos_url":"https://api.github.com/users/igor-rubis/repos","events_url":"https://api.github.com/users/igor-rubis/events{/privacy}","received_events_url":"https://api.github.com/users/igor-rubis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-16T12:38:16Z","updated_at":"2016-09-19T09:57:00Z","closed_at":"2016-09-19T09:57:00Z","body":"Hello.\r\n\r\nin our project we run tests using junit suites:\r\n> package some_package;\r\n> \r\n> import org.junit.runner.RunWith;\r\n> import org.junit.runners.Suite;\r\n> import org.junit.runners.Suite.SuiteClasses;\r\n> \r\n> \r\n> @RunWith(value = Suite.class)\r\n> @SuiteClasses(value = { some_package.FirstTest.class, some_package.SecondTest.class,  }) \r\n> public class SplitSuite15 /* suite class name */ {\r\n> \r\n> }\r\n\r\nIf first scenario fails, lets say due to AssertionFailedError the rest scenarios are skipped. With the following output:\r\n\r\n> some_package.SplitSuite15  Time elapsed: 1.301 sec  <<< ERROR!\r\n> java.lang.RuntimeException: org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running stories: \r\n> org.jbehave.core.embedder.PerformableTree$SomethingHappened@24d3fddb: junit.framework.AssertionFailedError: foo\r\n>         at net.serenitybdd.jbehave.runners.SerenityReportingRunner.run(SerenityReportingRunner.java:177)\r\n>         at org.junit.runners.Suite.runChild(Suite.java:128)\r\n>         at org.junit.runners.Suite.runChild(Suite.java:27)\r\n>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n>         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n>         at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)\r\n>         at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)\r\n>         at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)\r\n>         at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)\r\n>         at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)\r\n>         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)\r\n> Caused by: org.jbehave.core.embedder.Embedder$RunningStoriesFailed: Failures in running stories: \r\n> org.jbehave.core.embedder.PerformableTree$SomethingHappened@24d3fddb: junit.framework.AssertionFailedError: foo\r\n>         at org.jbehave.core.embedder.Embedder$ThrowingRunningStoriesFailed.handleFailures(Embedder.java:553)\r\n>         at org.jbehave.core.embedder.Embedder.handleFailures(Embedder.java:238)\r\n>         at org.jbehave.core.embedder.Embedder.runStoriesAsPaths(Embedder.java:216)\r\n>         at net.serenitybdd.jbehave.embedders.ExtendedEmbedder.runStoriesAsPaths(ExtendedEmbedder.java:60)\r\n>         at net.serenitybdd.jbehave.runners.SerenityReportingRunner.run(SerenityReportingRunner.java:175)\r\n>         at org.junit.runners.Suite.runChild(Suite.java:128)\r\n>         at org.junit.runners.Suite.runChild(Suite.java:27)\r\n>         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n>         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n>         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n>         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n>         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n>         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n>         at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)\r\n>         at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)\r\n>         at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)\r\n>         at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)\r\n>         at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)\r\n>         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)\r\n> \r\n> \r\n> Results :\r\n> \r\n> Failed tests: \r\n>   FirstTest.givenThatTheUserHasNavigatedToAProductPage:42 foo\r\n>   scenario failed!\r\n>   story failed!\r\n> \r\n> Tests in error: \r\n>   SplitSuite15.Some_package.SplitSuite15 » Runtime ...\r\n> \r\n> Tests run: 19, Failures: 3, Errors: 1, Skipped: 13\r\n> \r\n> [ERROR] There are test failures."}}
{"actor":{"display_login":"igor-rubis"}}