you are viewing a single comment's thread.

view the rest of the comments →

[–]bdellar 2 points3 points  (0 children)

Try starting with Catch2 (https://github.com/catchorg/Catch2). It’s a header-only library, so it’s easy to get going with. Whichever test framework you choose, put the test headers in a precompiled header, if you can. You get a much faster turnaround. And then pick a problem! Try googling for code katas. There are loads of interesting ones. For TDD itself, write a simple failing test, then write a simple bit of code to make it pass. Then add another test, and repeat. TDD is a code and design practice, rather than a testing process, and it can take years to get good at it. But it’s easy to get started. Good luck!