71

When Writing Unit Tests, Don't Use Mocks | SendGrid

 5 years ago
source link: https://sendgrid.com/blog/when-writing-unit-tests-dont-use-mocks/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Writing tests for your code? Consider using fakes instead of mocks because fakes provide more flexibility and allow for easy testing and refactoring. They also reduce dependencies and are easier to maintain compared to mocks. Read more.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK