Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.52 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.52 KB

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

  1. Import QualityWatcher reporter to your config file wdio.conf.js
import QualityWatcherReporter from "@qualitywatcher/wdio-reporter";

or

const QualityWatcherReporter = require("@qualitywatcher/wdio-reporter");
  1. Add QualityWatcher reporter to the list of reporters in your config file wdio.conf.js:
reporters: ['spec', QualityWatcherReporter],
  1. 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", ...
  1. 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.