Questions:
- What is the fundamental difference between unit tests and functional tests?
- How can unit tests and functional tests work together?
- Write Postman tests for all endpoints of the user service.
- Write more sophisticated tests when verifying the responses (for example, check that the token contains the correct information).
- Write unit tests verifying that the JWT functions in the user service are working correctly.
Answers:
- Unit tests are for individual functions. Functional tests are undertaken to test the overall functionality of a service.
- While unit tests ensure that foundational functions operate properly, functional tests will ensure that functions are working together as intended.
- See GitHub.
- See GitHub.
- See GitHub.