2013-07-16 16 views

回答

0

您可以通过此写入多个故事:

@Override 
protected List<String> storyPaths() { 
    return new StoryFinder() 
      .findPaths(codeLocationFromClass(embeddableClass).getFile(), asList("**/*.story"), null); 
} 

您还可以指定要运行的故事。例如,这将运行所有采购的故事:

...asList("**/purchasing-*.story"), null) 

来源:http://jbehave.org/reference/stable/developing-stories.html#configuring

相关问题