0.0.13 • Published 9 months ago

wdio-testmo-service v0.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

wdio-testmo-service

With this plugin for webdriver.io you can choose test cases to execute based on Priority from an exported CSV from Testmo.

This plugin does not directly interact with Testmo yet. I am waiting for the Testmo team to implement the APIs necessary. Until then, this plugin will read the CSV file exported from Testmo in the following format:

"Case ID","Priority"
"11111","Medium"
...

Currently, the service only works with mocha test framework and assumes the Testmo Case ID is included in your mocha describe or it (or suite, test for TDD) blocks.

Installation

The easiest way to install this module as a (dev-)dependency is by using the following command:

npm install wdio-testmo-service --save

Or:

npm install wdio-testmo-service --save-dev

Usage

Add wdio-testmo-service and required options to your wdio.conf.js:

exports.config = {
  // ...
 services: [
  [
   "testmo",
   {
    csv: "path/to/testcases.csv",
    priorities: ["Critical", "High"],
   },
  ],
 ],
  // ...
};

Options

csv (required)

Location of CSV file.

priorities (required)

Array of Priority Names to choose tests from.

Notes

  1. The service considers cucumber-like tagging. For example, supplying mocha-opts.grep "@sanity @smoke" will only include test cases with either @sanity or @smoke in the describe or it blocks in addition to filtering by Priority.

  2. Specifying mochaOpts.grep without a tag (no @ in the string) or specifying mochaOpts.invert will override this service completely.

  3. If you enter invalid Priorities, all Priorities will be included.

For more information on WebdriverIO see the homepage.

0.0.13

9 months ago

0.0.10

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago