JUnit formatted test output
Asked Answered
H

1

7

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?

Hajji answered 8/7, 2016 at 16:50 Comment(0)
H
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

Hajji answered 2/8, 2016 at 16:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.