Supertest API testing library
Supertest is a popular JavaScript library for testing HTTP APIs. It allows developers to send HTTP requests to their server-side code and assert that the response meets certain criteria.
Read articleSupertest is a popular JavaScript library for testing HTTP APIs. It allows developers to send HTTP requests to their server-side code and assert that the response meets certain criteria.
Read articleIntroduces WireMock for stubbing HTTP dependencies in isolated API testing, explaining Maven/JUnit setup and demonstrating how to define stubs for GET/POST requests matching URL, headers, and body, using Rest-Assured for client requests.
Read articleDemonstrates Rest-Assured integration tests using various free endpoints from jsontest.com, covering GET requests (IP, date, echo, cookie, headers) and POST requests (MD5 calculation, JSON validation).
Read articlePart 1 of Rest-Assured guide: Covers setup, BDD approach (given/when/then), basic GET tests against JSONPlaceholder, Hamcrest assertions, JSON schema validation, and PUT requests with automatic Java object to JSON conversion.
Read article