I have a couple of MFC applications. I don't want to unit-test UI but test all logics in the application for TDD. According to my research, I found two ways
- Using C++/CLI and MSTest to build managed tests after restructuring your code into a static library
- Using Google C++ Testing framework
I was almost sold to MSTest approach but changed my mind after reading comments on a blog about it. I want to spend my time to debug my application but not my tests for the application.
I am sure there are a lot of developers who are practicing TDD in C++. I would like to hear from them which way above is a good practice.