|
|
|
|
|
by mrkeen
52 days ago
|
|
> A bigger problem is the tedious necessity of having to reconstruct the desired state every single run. When you have something small with limited functionality, that is fine, but as your application grows, rebuilding the state can take a significant effort. This is what tests are for. There should be no buildup of internal state that can't be arrived at with a simple invocation in a unit test. |
|
Often, when you're building something new, you're not sure what the best approach is. So, you need room to experiment and try different things to see what works best. Writing tests boxes you into an approach out of the gate.