Jenkins
WebdriverIO offers a tight integration to CI systems like Jenkins. With the junit
reporter, you can easily debug your tests as well as keep track of your test results. The integration is pretty easy.
- Install the
junit
test reporter:$ npm install @wdio/junit-reporter --save-dev
) - Update your config to save your XUnit results where Jenkins can find them, (and specify the
junit
reporter):
// wdio.conf.js
module.exports = {
// ...
reporters: [
'dot',
['junit', {
outputDir: './'
}]
],
// ...
}