Cucumber.js setup for testing API endpoints with Supertest and Open API specs.
This repo is a proof of comcept.
npm install
Start the server:
npm start
Then run the tests:
npm test
- Cucumber runs features files.
- Step definitons execute, using SuperAgent to send HTTP requests
- Response bodies are asserted using Chai against example data defined in the API's Open API spec.