|
|
|
|
|
by williamdclt
715 days ago
|
|
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. |
|