BenEdridge / test-thy-api

đź“šExperimenting with API testing: schema validation, generative tests, fuzzing and BDD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test-Thy-API

An experiment with API testing options including: schema validation, generative testing, property-based checks, fuzzing and BDD (cucumber-js)

Notes

  • A basic API build with express
  • Some tests fail on purpose to show output (Relevant parts of code are commented)
  • Edges cases and mistakes are purposeful
  • Check out all the test styles under ./tests

Get started

nvm use
npm install
npm run test:integration
npm run test:e2e

# see package.json for more commands to run

Tools

mocha - test runner
supertest - request/assertion library
dredd - schema validation against swagger/openapi
cucumber-js - BDD style testing framework
fast-check - Generative/Property based assertions
swagger-jsdoc - JSDoc -> Swagger output

About

đź“šExperimenting with API testing: schema validation, generative tests, fuzzing and BDD


Languages

Language:JavaScript 90.6%Language:Gherkin 9.4%