Minosse
Common steps for testing api's using Cucumber.js.
Usage
Install the library:
npm install minosse --save-dev
Create a steps file in your project and load the api teststeps from there and add an optional configuration:
module { ; this;}
Use the steps in your feature file:
Given I set property request body to number-array 1,2,3When I send a POST request to /sumThen the response status code is 200And I check property sum of response body equals number 6
What's next?
Development
Style
We have an .editorconfig
file to help us having a consistent coding style.
Please install a plugin for your editor.
We use eslint
for code linting.
There are plugins for that too.
Tasks
We use gulp as a task runner. Install it globally first: npm install -g gulp
.
To see a list of gulp commands, run:
gulp help
Git hooks
In the package.json
you can see a pre-commit and pre-push hook.
On commiting or pushing these commands are executed.
If they fail, the commit/push will fail.
Add the --no-verify
flag to your commit or push to bypass these checks.