@RunWith(SpringAnnotatedEmbedderRunner.class) @Configure( pendingStepStrategy = FailingUponPendingStep.class, failureStrategy = RethrowingFailure.class, storyReporterBuilder = MyStoryReporterBuilder.class) @UsingEmbedder(embedder = Embedder.class, verboseFailures = true, generateViewAfterStories = true, ignoreFailureInStories = false, ignoreFailureInView = true) @UsingSpring(resources = { "spring-test-context.xml" }, ignoreContextFailure = false) public class IntegrityTest extends InjectableEmbedder { @Test public void run() throws URISyntaxException { injectedEmbedder().runStoriesAsPaths(storyPaths()); } protected List<String> storyPaths() throws URISyntaxException { URL storyLocation = this.getClass().getClassLoader().getResource("stories/integrity.story"); File storyFile = new File(storyLocation.toURI()); String storyDirectory = storyFile.getParentFile().getParent(); return new StoryFinder().findPaths(storyDirectory, asList("**/*.story"), null); } }