Lesson Learned: Don’t Use Low-Level Lib To Test High-Level Code

Summary: Using a fake http library to test logic two levels above HTTP is unnecessarily complex and hard to understand. Fake instead the layer directly below the logic you want to test and verify the low-level HTTP interaction separately. In general: Create thin horizontal slices for unit testing, checking each slice separately with nicely focusedContinue reading “Lesson Learned: Don’t Use Low-Level Lib To Test High-Level Code”