News for hackers. Stuff that matters.
Re:Ask HN: How can I convince a team member to try TDD by rooam-dev on Wednesday April 10, 2019 @06:23PM (#19629340)
Could be. You could have close to complete coverage, but slow integration tests. Not a big problem, CI can run those all the time. The problem is the feedback cycle. The slower the tests, the slower the feedback is. So, with each change I have to wait for integration test to run. There is a difference between 2 seconds and 20... it's ok intially but later feels like restarting the server just see if my changes work.

I think and hope with TDD (or some sort of it) to get everyone into a discipline mode, which will lead to better tests. Coverage should follow.

Anyway, I think it's worth trying, but it needs commitment and discipline, similar to agile... it has to be tried as a team.

There are no comments on this comment yet.