Skip to content

Commit

Permalink
Fixes grammar in sentence about auto-generating mocks (quii#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarv authored Dec 24, 2020
1 parent dfe103e commit f35fdae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ Mocking requires no magic and is relatively simple; using a framework can make m
- a better understanding of how to mock
- practise implementing interfaces

In collaborative projects there is value auto-generating mocks. In a team, a mock generation tool codifies consistency around the test doubles. This will avoid inconsistently written test doubles which can translate to inconsistently written tests.
In collaborative projects there is value in auto-generating mocks. In a team, a mock generation tool codifies consistency around the test doubles. This will avoid inconsistently written test doubles which can translate to inconsistently written tests.

You should only use a mock generator that generates test doubles against an interface. Any tool that overly dictates how tests are written, or that use lots of 'magic', can get in the sea.

Expand Down

0 comments on commit f35fdae

Please sign in to comment.