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

I have a bad habit of writing a mondo-super-all-encompassing test, and I have to break it up when I realize it’s a house of cards.

I think the better rule is “just test one thing, don’t use a lot of overlapping assertions between tests”.

Number of assertions, as noted by this post and this comment section, is not a smell at all.



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

Search: