- IT(Integration Testing, Component Testing) is used to test the multiple modules/components together.
Stub -> pre-defined behaviour
Fake -> service replacement using closer or similar tech. Ex instead of actual postgresdb use in memory database. Or in stead of testing a dependency service write a Double REST service.
Dummy -> Service replica does not do anything or returns nothing
## coupling
Spy -> To verify the right message is sent to the Double
Mock -> To verify the right message is sent to the Double in a certain way
2.2 Broad IT Broad IT requires live versions of all services, requiring substantial test environment and network access.
- FT is Application Under Test(AUT).
- FT should start testing the most popular positive user scenarios/ workflows.
- FT should test the service boundaries. Ex. user-id can be of max length 16 letters
- FT should test the decisional flows. Ex. respond profile page if user is loggedd in.
- FT should verify service response and the data states for command (
POST
,PUT
) requests. - FT should verify service response for query (
GET
) requests.
References