I want to get started on Unit Testing in C++ (pure C++, not .NET), since I have never done it before. Always used assert
and cout
.
So far, the only good Question with detailed answers, I have found is https://stackguides.com/questions/13699/choosing-a-c-unit-testing-tool-framework, but it is dated to 2008.
I would like to hear some opinions about currently available C++ Unit Testing compatible with Visual Studio 2012. What are their Cons and Pros ? How easy/hard to learn them(i.e availability of learning materials) ? How Popular they are ? Are they being actively developed, supported ?
There are several frameworks that I am aware of: Google's Testing Framework, Boost Testing Lib.
(Also, in addition to Visual Studio, I use Intel Parallel Studio XE 2013, primarily for static analysis)
File->New->Project->Visual C++->Test->Test Project
. – user645280cout
, might I suggest log4cpp or one of it's cousins? – user645280