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

If the name is not descriptive enough, I put it in the test's docstring. Still, it sometimes is not enough.

I like languages where the test infrastructure lets you put an arbitrary string as the test name (e.g. F#, Elisp, Racket, etc). This way, you don't spend time thinking up a weird name for the test. You simply write a string that describes what you're testing, and what is expected. It's OK if that string is a few paragraphs long.



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

Search: