Easier orchestration for functional testing
npm install funkieMakes orchestration of automated functional/behavioural testing easier.
Will handle the spinning up and tearing down of automation driver processes automatically so you can just npm test. Funkie allows you to choose from a number of compatible automation drivers and will handle their installation and the execution of their processes for you.
Most automation frameworks require a user to handle starting/stopping a webdriver/selenium instance independently from the test runner. Funkie makes it easy to do single-command automated test runs, which are fully encapsulated and clean up after themselves.
Funkie can be installed globally for use from the command line, or locally for use as part of an npm test script.
First install the driver of choice:
``shell`
> npm install --save-dev funkie-phantom
Then run the test command of your choice with funkie:
`shell`
> funkie
For example, to run a mocha test suite against a phantom driver:
`shell`
> funkie mocha ./test
To use an a different driver module:
`shell`
> npm install funkie-selenium
> funkie --driver selenium
* Using funkie with protractor
* Using funkie with wd
`shell`
> npm install [--save-dev] funkie-phantom
> funkie --driver phantom
`shell`
> npm install [--save-dev] funkie-selenium
> funkie --driver selenium
Funkie drivers are as simple as:
`javascript`
module.exports = () => {
return {
start: () => {},
stop: () => {}
}
}
If the start and stop methods are required to be asynchronous then they should return a promise.
You can pass a local driver with the driver option by passing a relative path:
`shell``
> funkie --driver ./my/local/driver/module