Streamlining your automated tests, Pt. 2

Streamlining your automated tests, Pt. 2

In our last article, we looked at how the builder pattern increases the readability of our tests while simultaneously decoupling us from the construction details around the objects we’re testing. Sometimes this pattern by itself isn’t sufficient. Occasionally, we need...
Streamlining your automated tests, Pt. 2

Streamlining your automated tests, Pt 1

TL;DR Writing automated tests for your complex scenarios is important, but it’s easy for the tests to become difficult for other developers (including your 6-month future-self) to read and understand. Using a builder method for the “happy path” that returns an object...