The repo contain test with validation response schema based on openapi documentation.
Every time before tests - will be downloaded API schema into nodejs workspace and after check structure of response against fresh version of schema.
After running test - will be generated html report in the /mochawesome-report directory.
For launch tests in the /test directory:
- clone repo
- install all dependecies: npm i
- launch tests: npm test
Tools:
axios- for requestschai-openapi-response-validator- for validation responsego-git-it- for fetching openapi spec from github repo