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
どうすれば達成できますか?