【问题标题】:JUnit formatted test outputJUnit 格式化测试输出
【发布时间】:2016-07-08 16:50:21
【问题描述】:

Jenkins 没有注意到我在 Polymer 中运行的测试用例,我不太确定如何生成正确的 JUnit 文件。使用web-component-tester 如何生成 JUnit 格式的测试输出?

【问题讨论】:

    标签: polymer web-component-tester


    【解决方案1】:

    This package 最终帮我解决了这个问题。

    流程

    $ npm install wct-xunit-reporter
    $ wct --plugin xunit-reporter
    

    或将配置添加到 wct.conf.js

    module.exports = {
      plugins: {
        local: {
          browsers: ['chrome']
        },
        sauce: false,
        'xunit-reporter': {
          'output': 'testfile.xml'
        }
      }
    };
    

    运行 web-component-tester

    $ wct

    【讨论】:

      猜你喜欢
      • 2016-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多