November 2018
Intermediate to advanced
346 pages
8h 12m
English
The exchange package makes HTTP calls to an external service for exchange rates. Currently, when the tests are run, it will make calls to that service. This means that our tests have the following features:
All of these factors are either out of our control or otherwise wholly unrelated to our service. If we take the perspective that the reliability of our tests is a measure of the quality of our work, then our quality is now dependent on things we cannot control. This is far from ideal.
We could create a fake currency service ...
Read now
Unlock full access