logoalt Hacker News

ljmyesterday at 7:13 PM1 replyview on HN

It helps if tests are well written such that they help you with refactoring, rather than just being the implementation (or a tightly coupled equivalent) but with assertions in it.

Rare to see though. I don't think being able to write code automatically means you can write decent tests. Skill needs to be developed.


Replies

danparsonsonyesterday at 10:54 PM

And the challenge with writing tests well is that it might be difficult or impossible without the refactor...