DEV Community


Discussion on: A Simple Way To Get Started With TDD

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.