Hacker News new | past | comments | ask | show | jobs | submit login

I agree. Random data makes the tests less specific, so I'd wager the authors would probably also argue against it.

Assuming you trust your unit tests, you can claim a passing test suite means: (1) given current understanding, the code is most likely correct and (2) based on the same assumption, other developers agree that the code is most likely correct, for the current version of the program

I personally believe randomness has a place (fuzzing), but should stay semantically distinct from unit testing for the above reasons.






Applications are open for YC Summer 2020

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

Search: