【问题标题】:jbehave stdout output in wrong format on temcityjbehave stdout 在 temcity 上以错误的格式输出
【发布时间】:2015-07-15 13:18:21
【问题描述】:

我正在使用 Jbehave ,当我在本地(maven / IDE)执行测试时,控制台输出看起来不错:

teamcity 上的控制台输出如下所示:

Jbehave 配置文件中的输出配置如下:

@Override
public Configuration configuration(){
    return new MostUsefulConfiguration().useStoryLoader(
            new LoadFromClasspath(this.getClass())).useStoryReporterBuilder(
            new StoryReporterBuilder().withDefaultFormats().withFormats(
                    Format.TXT, Format.HTML, Format.ANSI_CONSOLE, Format.XML));
}

知道为什么 teamcity 中的输出“损坏”

【问题讨论】:

    标签: console teamcity stdout jbehave


    【解决方案1】:

    我没有这个问题

        @Override
        public Configuration configuration(){
            return new MostUsefulConfiguration().useStoryLoader(
                    new LoadFromClasspath(this.getClass())).useStoryReporterBuilder(
                    new StoryReporterBuilder().withFormats(Format.HTML, Format.CONSOLE));
        }
    

    您会发现 Html 作为资源文件,控制台将打印到标准输出(在 TC 上构建日志)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-17
      相关资源
      最近更新 更多