DEV Community

loading...

Discussion on: A Simple Way To Get Started With TDD

Collapse
matheusrich profile image
Matheus Richard Author

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.