top | item 28756478

(no title)

dadior | 4 years ago

For me, I always feel comfortable to write test first, stick around TDD. But you don't need to always write unit test first, actually, I guess my major part of coding is begin with integration test. Like a page of a website, then add some necessary unit test. I think ideally the test structure should like olive, the two tip is unit tests and e2e tests, the main trunk is integration test. If you are familiar with all those test lib you are using, then TDD is not slower than just code, even faster, aside test maintain in the future. So even you just throw away some of your tests, TDD is still a good choice for me.

discuss

order

No comments yet.