【问题标题】:Running multiple test cases in jbehave在 jbehave 中运行多个测试用例
【发布时间】:2015-04-07 02:45:43
【问题描述】:

我是 jbehave 的新手。我需要从 junit 调用 jbehave。

如何在 jbehave 中运行多个测试用例。

【问题讨论】:

    标签: jbehave


    【解决方案1】:

    你可以这样写多个故事:

    @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

    【讨论】:

      猜你喜欢
      • 2012-06-20
      • 1970-01-01
      • 1970-01-01
      • 2011-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-29
      • 1970-01-01
      相关资源
      最近更新 更多