Skip to content

This is a POC using Jest and Supertest for API testing and Allure as reporting.

Notifications You must be signed in to change notification settings

woolter/RestAPITesting-jest-supertest

Repository files navigation

Rest API testing using Jest and Supertest

This is a POC using Jest and Supertest for API testing and Allure as reporting.

Quick start

Run the dummy server

$ docker run -p 80:80 kennethreitz/httpbin

In another shell, run tests and reporting

$ git clone ...
$ cd ...
$ yarn install
$ # run tests
$ yarn test
$ # generate report
$ yarn allureReport

Dependencies

Notes

I extended Jest expect with .toMatchSchema(). See jest-json-schema.

About

This is a POC using Jest and Supertest for API testing and Allure as reporting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published