David Adamo Jr.
I learn, build, and teach.
  • LinkedIn
  • Twitter
Skip to content
  • About Me
  • Mentoring
  • Blog
  • Bookshelf
  • Peer-Reviewed Publications
  • Github

Unit testing

There are 4 posts tagged Unit testing (this is page 1 of 1).

Texas Sharpshooters and Test-Driven Development

The Texas Sharpshooter fallacy describes a bias where patterns are forced to fit preconceived beliefs. TDD increases the likelihood that tests reflect intended behavior rather than confirming flawed code, thus avoiding the “sharpshooting” of writing tests to suit existing, potentially faulty implementations.

in Programming, Software Engineering, Software Testing | February 7, 2024 | 760 Words | Comment

Avoid Fakers in Unit Tests

Unless you are fuzz testing or your goal is to create property-based tests, test data generators (a.k.a. fakers) are likely to do more harm than good in the long run.

in Programming, Software Engineering, Software Testing | July 29, 2023 | 180 Words | Comment

What is a Unit Test?

There is a lot of confusion about what unit tests are and how they differ from integration tests. This post provides one viewpoint on what unit tests are.

in Programming, Software Engineering, Software Testing | May 16, 2023 | 526 Words | Comment

Duplication over Abstraction in Unit Tests

In your production code, favor abstraction over duplication. In your unit tests, favor duplication over abstraction.

in Programming, Software Testing | February 26, 2023 | 175 Words | Comment

Recent Posts

  • Texas Sharpshooters and Test-Driven Development
  • Add Value and Make Noise
  • Life Lessons from Statistics
  • The Curse of Knowledge
  • Avoid Fakers in Unit Tests
Independent Publisher empowered by WordPress