5
Performing Integration Testing
In the previous chapters, we discussed the broader topic of writing and testing code with test-driven development (TDD), but have kept our implementation focus on unit tests. As we’ve discussed at length so far, unit tests are at the bottom of the test pyramid, being the most numerous, as they are testing all the different independent parts or units of the application.
The concepts we have discussed so far have allowed us to write unit tests that test these units in isolation, across a variety of scenarios. In Chapter 3, Mocking and Assertion Frameworks, we learned how to make use of frameworks to easily create mocks, which allow us to instantiate units whose dependencies we have full control over. As discussed ...
Get Test-Driven Development in Go now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.