Testing for Error Cases
Get an overview of error case testing and unit testing for adapters in detail.
We'll cover the following...
Error case testing
The application design allows multiple ways to simulate errors for testing purposes:
-
We can make an API call to the actual service that results in an error and then capture the result using VCR. We can use this approach in an integration or adapter test. ...