I need to have the mystory.story and MyStory.java file in different folders. Below is my configuration,
@Override public Configuration configuration() { return new MostUsefulConfiguration() // where to find the stories .useStoryLoader(new LoadFromClasspath(this.getClass())) // CONSOLE and TXT reporting .useStoryReporterBuilder( new StoryReporterBuilder().withDefaultFormats() .withFormats(Format.CONSOLE, Format.HTML)); } // Here we specify the steps classes @Override public List<CandidateSteps> candidateSteps() { // varargs, can have more that one steps classes return new InstanceStepsFactory(configuration(), new SurveySteps()) .createCandidateSteps(); }
That is, I need to use the folder structure as
test |_config |_MyStory.java |_stories |_my_Story.story
instead of <
test |_MyStory.java |_my_Story.story
How can i achieve this?
source share