Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JUnit formatted test output

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?

like image 956
Nick Rucci Avatar asked Jul 08 '16 16:07

Nick Rucci


Video Answer


1 Answers

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

like image 122
Nick Rucci Avatar answered Oct 20 '22 10:10

Nick Rucci