TDD Books for C ++

What material would you recommend for stubborn C ++ developers who need to learn how to develop using TDD. I would like the book to contain examples that not only test simple functions, but that relate to testing classes that use dependency injection.

+4
source share
1 answer

Honestly, I would just go with a standard TDD book - the basic principles are an important part, and the specific technologies used to express them are just details.

I have had great success with transposing the fundamentals to "Growing Test-Driven Object-Oriented Software" , which targets Java + JUnit + JMock + WindowLicker, and contains a run example that, although a bit toy-like, still covers everything The topics mentioned in your post are in C ++ + Google Test + Google Mock + QTestLib. The main stumbling block is that Java tools are in many ways more complex than their C ++ counterparts, but you can usually find a way to emulate important parts in C ++.

+1
source

Source: https://habr.com/ru/post/1442812/


All Articles