Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One thing I do sometimes is to start part of an API in a TDD style. Everything starts very "basic", which adds a lot of relatively trivial test cases.

When done with that phase and my API looks relatively functional, I remove all relatively trivial tests and I write bigger ones, often randomized and property-based.

This works decently well and you do not have an army of useless tests there hanging after the process is done.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: