@aofl/wdio
v3.14.0
Published
@aofl/wdio is an end to end testing framework that serves as a wrapper for WebDriverIO's test framework. Our package is application agnostic, but additional commands for interacting and testing Web Components have been added to reflect the bulk of testing
Downloads
286
Readme
@aofl/wdio
@aofl/wdio is an end to end testing framework that serves as a wrapper for WebDriverIO's test framework. Our package is application agnostic, but additional commands for interacting and testing Web Components have been added to reflect the bulk of testing we do here. Setup is easy and you can start writing tests for your application within minutes of installing this package.
Installation
- Run the following command in your application.
npm i -D @aofl/wdio
- {Placeholder for running the aoflwdio init command}
- In the
.aoflwdio.js
file created by theaoflwdio init
command, setup your applications config options- This file serves as your configuration file for defining your test runner options.
- Configurations such as device capabilities, logging, and others are defined in this file
- Refer to https://webdriver.io/docs/options.html for a breakdown of options for this file.
- Your all set! Start writing your tests!
Usage
Once your .aoflwdio.js
has been updated with your applications config options, and your test specs have been written, simply run:
aoflwdio run-test
Help
You can use the help command at program level and at command level.
program level
$ aoflwdio --help
# Usage: aoflwdio [options]
#
# Options:
#
# -V, --version output the version number
# -h, --help output usage information
#
# Commands:
#
# init Initializes an aoflwdio project
# run-test <options> Download an npm module into your project
# help [cmd] Display help for [cmd]
#
# Examples:
#
# aoflwdio --help
# aoflwdio run-test
Command level
$ aoflwdio help g
# Usage: aoflwdio run-test [options]
#
# Options:
#
# -h, --help output usage information
# -w, --watch Watches for filesystem changes
# --suite [suiteName] Run specific test suites
# --spec [path] Run specific test spec files
# --debug Sets logging to verbose globally
# --config [path] Specify the path to the config file.
#
# Examples:
#
# aoflwdio help
# aoflwdio run-test --suite login
# aoflwdio run-test
Presets
(wip)
Page and Element Docs
(wip)
Addtional Information
WebDriver.io has a great ecosystem of plug-ins and services that extend the functionality of the WebDriver.io test runner. For our purposes, we provide support for only a subset of those services. The following services are supported by @aofl/wdio
: