Testing APIs and code manually
Testing is a continuous process in software development and maintenance cycles. You need to do full testing that covers all possible use cases and the respective code for each change. Different types of testing can be performed for APIs, including the following:
- Unit testing: Unit testing is performed by the developers to test the smallest unit (such as a class method) of code.
- Integration testing: Integration testing is performed by the developers to test the integration of different layers of components.
- Contract testing: Contract testing is performed by the developers to make sure any changes that are made to the API won't break the consumer code. The consumer code should always comply with the producer's contract (API). It is primarily required in microservices-based development.
- End-to-End (E2E) testing: E2E testing is performed by the Quality Assurance (QA) team to test end-to-end scenarios, such as from the UI (consumer...