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.
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
Add wdio-testmo-service and required options to your wdio.conf.js
:
exports.config = {
// ...
services: [
[
"testmo",
{
csv: "path/to/testcases.csv",
priorities: ["Critical", "High"],
},
],
],
// ...
};
Location of CSV file.
Array of Priority Names to choose tests from.
-
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. -
Specifying
mochaOpts.grep
without a tag (no@
in the string) or specifyingmochaOpts.invert
will override this service completely. -
If you enter invalid Priorities, all Priorities will be included.
For more information on WebdriverIO see the homepage.