Mocking is a Code Smell.

This is quite an interesting article and an eye-opener regarding the use of dependency injection and mocking in unit tests. I used to solve my testing issues with mocks and stumbled over quite some of the problems when doing so. This article helped me better understand the solutions to my questions.

    Comments

    How to respond

    Write your comment on your on page and link it to this page with the following link:
    https://vmac.ch/posts/2019-09-12-mocking-is-a-code-smell-link/
    Then insert the permalink to your post into the form below and submit it.

    Alternatively you can reach me by email to: comment@vmac.ch