Re:Ask HN: What's the best way to learn about testing/TDD?
by jlangr on Friday April 28, 2017 @10:46AM
(#14219766)
There's a big difference between writing tests for existing code and TDD. I think it's a great idea to first try and write tests for someone else's existing code so you discover what a pain it is.
Were it me, I'd build something small and interesting to me, write some unit tests against it after-the-fact. Then I'd do it again, using TDD the 2nd time to see how the approaches differed.
https://searchcode.com can be useful in helping find repos based on code criteria.
Were it me, I'd build something small and interesting to me, write some unit tests against it after-the-fact. Then I'd do it again, using TDD the 2nd time to see how the approaches differed.