JUnit formatted test output

后端 未结 1 800
青春惊慌失措
青春惊慌失措 2021-01-18 06:29

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

相关标签:
1条回答
  • 2021-01-18 07:19

    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

    0 讨论(0)
提交回复
热议问题