JUnit formatted test output

久未见 提交于 2019-11-28 07:32:06

问题


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:


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



来源:https://stackoverflow.com/questions/38271876/junit-formatted-test-output

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!