我需要将 mystory.story 文件和 MyStory.java 放在不同的文件夹中。下面是我的配置,
@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();
}
那就是我需要使用文件夹结构作为
test
|_config
|_MyStory.java
|_stories
|_my_Story.story
代替,
test
|_MyStory.java
|_my_Story.story
我怎样才能实现它?