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

We’ve got an episode on this. Check out “Tests should be deterministic.” https://youtu.be/PwWyp-wpFiw

To put some more to it: I like my tests to not use random data, but I’ll use a random data generator when coming with the test cases. That way I don’t get surprises in CI with a flakey test, but I can still generate interesting cases.




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

Search: