Hacker News new | ask | show | jobs
by pytester 2576 days ago
>There are obvious solutions: Mocking everything, removing global state, writing more robust test setup code... But who has time for this?

I find that doing all of this tends to actually save time overall it's just that the up front investment is high and the payoff is realized over a long time.

Most software teams seem to prefer higher ongoing costs if it comes with quick wins to up front investment.

1 comments

Those are the age-old arguments against TDD. Every team will have to analyze the value proposition in their context to see if the return is worth the investment.