title: State of the art C++ Unit Testing?
body: <p>What are the most modern approaches to <em>unit testing</em> for the C++ language? The class of the languages with bigger introspection power (like Python) have unit testing frameworks that are somehow more natural to use. Unit tests can be defined more easily. In comparison, the classical <code>CppUnit</code> (based on  <code>JUnit</code>) seems to take very conservative approach. Is there anything newer and better that uses the specific power of C++ (or even C++11) to make the life easier?</p>
  
  <p>I have been using <code>CppUnit</code> framework for a while in rather simplistic way for parts of the project on Windows native C++ (Visual Studio 2005 and 2010). We did not choose the Test Driven Development approach earlier, because there already was a lot of legacy code, and we had found it quite difficult to add tests for it. We had to refactor the application, but adding all the nice tests would be time consuming even in the case.</p>
  
  <p>Recently, we have switched to Visual Studio 2013 (because of the C++11 standard implementation), and we are going to start new, rather long-term project.</p>
  
  <p>Having the previous good (small) experience with unit testing, I would like to try the Test Driven Development approach. As the project is not a tiny one (expected size about the same as the older one, i.e. about 200 k lines of code), I prefer rather more easy (but not less capable) framework.</p>
  
  <p>There is a chance the new project could lead to cross-platform implementation (Windows and Linux). There is a unit testing support in Visual Studio 2013, but I have no experience with it and how would it fit with the cross-platform.</p>
  
  <p>So far, I have found the <a href="http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C.2B.2B" rel="noreferrer">list of unit testing frameworks for C++</a>. However, one cannot see how they differ in principle. I currently have three candidates (conservative choice):</p>
  
  <ul>
  <li>Boost -- the probable candidate; testbed for C++ standards; hence it is likely it is to be widely accepted; probably the biggest user group. It seems to be more advanced than <code>CppUnit</code>.</li>
  <li>CppUnit -- I know it, but it writing all of the code around is not a pleasure.</li>
  <li>Visual Studio 2013 built-in -- new to me, somehow can generate the skeletons probably.</li>
  </ul>
  
  <p>Anyway, it seems that all of the three use similar approach. Possibly the VS2013 supports generating the code, but it does not mean it leads to anything simpler.</p>
  
  <p>Is there any radically new approach?</p>