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

How do you tie the test suite to the specification? A test for a certain behavior alone doesn't document why it's testing that.


I have a property on my specification tests called "about" that explains why the feature exists along with other contextual information.

It makes much more sense to centralize the "why does this behaviour exist" there where the specific behaviour is being tested rather than in the code.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: