...
/Final Remarks on Testing External Services
Final Remarks on Testing External Services
Learn about which approach is best suitable for testing third-party HTTP services and how to test Non-HTTP Services.
We'll cover the following...
Which approach is best for testing external services?
We saw three possible approaches to testing third-party HTTP services:
- Making real requests
- Running a test server that mocks the service
- Recording real requests and replaying them
As is often the case in our industry, there’s no definitive best approach among these. Each one fits some use cases better.
Test server
Building a test server is the way to go if we want tight control over how the third-party API should behave. This ...