Unveiling the Dangers: The Negative Impacts of Using Mocks in Software Development

Summary of my bookmarked links from Oct 17th, 2022


  • Why Mocks Are Considered Harmful

    The article emphasizes the drawbacks of using mocking in automated testing during software development. It explains that mocks can provide false confidence and hinder the testing of integrations. Instead, the author suggests refactoring code to separate pure and impure functions, allowing unit tests without mocks and integration tests for impure functions. They also advocate for improving automation in software packaging, deployment, and testing to enhance integration testing and enable continuous delivery. In conclusion, the article promotes spending less time on mocks and more on refactoring and automation to accelerate software development.