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?
This package ended up doing the trick for me.
$ 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With