JUnit formatted test output

2019-01-27 21:51发布

Jenkins doesn't notice my test cases being ran in Polymer and I am not so sure how to generate the correct JUnit file. With the web-component-tester how do I generate JUnit formatted test output?

1条回答
男人必须洒脱
2楼-- · 2019-01-27 22:21

This package ended up doing the trick for me.

Process

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

or add config to wct.conf.js

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

Run web-component-tester

$ wct

查看更多
登录 后发表回答