Created
April 20, 2011 17:03
-
-
Save maggandalf/931947 to your computer and use it in GitHub Desktop.
Running All JBehave Stories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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