Skip to content

Instantly share code, notes, and snippets.

@maggandalf
Created April 20, 2011 17:03
Show Gist options
  • Select an option

  • Save maggandalf/931947 to your computer and use it in GitHub Desktop.

Select an option

Save maggandalf/931947 to your computer and use it in GitHub Desktop.
Running All JBehave Stories
@RunWith(SpringAnnotatedEmbedderRunner.class)
@Configure(parameterConverters=ParameterConverters.EnumConverter.class)
@UsingEmbedder(embedder = Embedder.class, generateViewAfterStories = true, ignoreFailureInStories = false, ignoreFailureInView = false)
@UsingSpring(resources = { "org/jbehave/business/configuration.xml",
"org/jbehave/business/tradingService-acceptancetest.xml" })
public class TraderIsAlertedStories extends InjectableEmbedder {
@Test
public void run() throws Throwable {
injectedEmbedder().runStoriesAsPaths(storyPaths());
}
protected List<String> storyPaths() {
return new StoryFinder().findPaths(codeLocationFromPath("src/test/resources"), "org/jbehave/business/*.story", "");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment