Testing
Swift Testing: Test Behavior, Not Implementation
A caching refactor changes nothing on screen and breaks eleven tests. What would a reader of the feed actually notice if the change were wrong?
Topics/1 edition
A refactor breaks a test while the screen behaves exactly as before. What promise should the test protect?
A caching refactor changes nothing on screen and breaks eleven tests. What would a reader of the feed actually notice if the change were wrong?