DEV Community


Discussion on: When do you write your tests?

jamesrichmond24 profile image
James Richmond

Personally I use TDD, so I write my the tests first.
TDD is a little hard to understand at the beginning, so if you're new to the testing world I would advice you to start with BDD, i.e writing the code first.
Anyway, it doesn't really matter when you write the tests as long as they are good :)

mrlarson2007 profile image
Michael Larson

I find personally I do my best when I write the tests first. For many years I was a test last developer and my tests where pretty bad.