@qualitywatcher/wdio-reporter
v1.0.11
Published
WebdriverIO Reporter for QualityWatcher
Downloads
24
Readme
QualityWatcher Reporter for Webdriverio
Publishes WebdriverIO runs on QualityWatcher.
This reporter works in conjunction with the @qualitywatcher/wdio-service
Install
$ npm install @qualitywatcher/wdio-reporter --save-dev
or
yarn add -D @qualitywatcher/wdio-reporter
Usage
- Import QualityWatcher reporter to your config file
wdio.conf.js
import QualityWatcherReporter from "@qualitywatcher/wdio-reporter";
or
const QualityWatcherReporter = require("@qualitywatcher/wdio-reporter");
- Add QualityWatcher reporter to the list of reporters in your config file
wdio.conf.js
:
reporters: ['spec', QualityWatcherReporter],
- Your WebdriverIO tests should include the ID of your QualityWatcher test case and suite that it belongs to. Make sure the suite and test case IDs are distinct from your test titles:
// Good:
it("[S12C1234] Can authenticate a valid user", ...
it("Can authenticate a valid user [S12C1234]", ...
// Bad:
it("S12C123Can authenticate a valid user", ...
it("Can authenticate a valid userS5C123", ...
- Install
@qualitywatcher/wdio-service
this reporter works in conjunction with that service.
NB: To ensure that we can handle retries properly, we had to make a compromise that all test suite (using the describe block in your code base) must have a unique name.