DEV Community

Discussion on: A Simple Way To Get Started With TDD

Collapse
 
matheusrich profile image
Matheus Richard

I tend to write a test that reproduces the exact error that raised in production. Then I make the exception go away by fixing the bug.

So I think I do both at once. But if you can split those phases safely, should be equally valid.