BrandGhost
BRACE YOURSELVES! We're Testing Implementation Details

BRACE YOURSELVES! We're Testing Implementation Details

They said don't do it. They said it's the wrong way to write tests. They said never do it this way. But you know me: I don't believe in "always" and "never". The general advice is that testing implementation details is "bad" because if you change the implementation, your tests are brittle to such changes. Instead, you should only test against the API. This seems like great advice on the surface, because after all, who wants to go remake tests when you refactor or rewrite code? Join me as I walk you through why you may want to consider breaking the "rules" of testing because... testing is just about building confidence in the code we're delivering.
An error has occurred. This application may no longer respond until reloaded. Reload