Texas Sharpshooters and Test-Driven DevelopmentTDD increases the likelihood that tests reflect intended behavior rather than confirming flawed code, thus avoiding “sharpshooting”.4 min read·davidadamojr.hashnode.devFeb 9, 2024
Avoid Fakers in Unit TestsIn your unit and integration tests, avoid using tools that automatically generate test input data.1 min read·davidadamojr.hashnode.devFeb 8, 2024
Duplication over Abstraction in Unit TestsIn your production code, favor abstraction over duplication. In your unit tests, favor duplication over abstraction.1 min read·davidadamojr.hashnode.devFeb 26, 2023
What does bad code look like?...or maybe it's more interesting to ask what it feels like.2 min read·davidadamojr.hashnode.devJan 30, 2023
Are your Tests Necessary and Useful?Some automated tests are unnecessary or problematic. Here are some questions to ask yourself about each test you write.1 min read·davidadamojr.hashnode.devMay 22, 2022