Spec Reporter

A WebdriverIO plugin to report in spec style.

Spec Reporter

Installation#

The easiest way is to keep @wdio/spec-reporter as a devDependency in your package.json.

{
"devDependencies": {
"@wdio/spec-reporter": "^6.3.6"
}
}

You can simple do it by:

$ npm install @wdio/spec-reporter --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration#

The following code shows the default wdio test runner configuration. Just add 'spec' as a reporter to the array.

// wdio.conf.js
module.exports = {
// ...
reporters: ['dot', 'spec'],
// ...
};

Spec Reporter Options#

symbols#

Provide custom symbols for passed, failed and or skipped tests

Type: object Default: {passed: '✓', skipped: '-', failed: '✖'}

Example#

[
"spec",
{
symbols: {
passed: '[PASS]',
failed: '[FAIL]',
},
},
]

sauceLabsSharableLinks#

Be default the test results in Sauce Labs can only be viewed by a team member from the same team, not by a team member from a different team. This options will enable sharable links by default, which means that all tests that are executed in Sauce Labs can be viewed by everybody. Just add sauceLabsSharableLinks: false, as shown below, in the reporter options to disable this feature.

Type: boolean Default: true

Example#

[
"spec",
{
sauceLabsSharableLinks: false,
},
]