Testing the App Endpoints with cURL
Learn to test an app by hitting the endpoints with HTTP requests and getting the expected response.
How to test an app
There are several kinds of tests to check if an application works. Some of the major ones are:
Unit testing: Unit testing tests a small piece of code, usually a function in isolation.
Integration testing: Integration tests are done at a higher level, usually involving more than one module or unit in the workflow. For example, if an app interacts with the database, integration tests will actually send queries to the database.
E2E testing: E2E or end-to-end testing, as the name suggests, tests the entire workflow of the app and includes all the components.
Manual testing: Manual testing in an app is usually fiddling with the UI of the app and trying out the features manually.
Tools to test an app
Earlier, we tested our server code using some HTML and ran it in a browser. This is ...