News for hackers. Stuff that matters.
Re:Programmers Should Never Trust Anyone, Not Even Themselves by williamdclt on Monday July 01, 2024 @11:32AM (#40846791)
we have _exactly_ that (down to the `withXXX` syntax), and indeed I found it great.

Downside is that test setup can be a bit slow: each `withXXX` can create more data than really necessary (eg a "withPost()" might update some "Timeline" objects, even though you really don't care about timelines for your test). Upside is that it's a lot closer to what happens in reality, regularly finding bugs as side-effect. And also you align incentives: you make your tests faster my making your application faster.

There are no comments on this comment yet.