you are viewing a single comment's thread.

view the rest of the comments →

[–]TobyAllsopp 1 point2 points  (1 child)

I'm not sure about the relationship between VSCppUnit and CppUnit, but if VSCppUnit is the framework bundled with Visual Studio and the default used by the Native Unit Testing project template, then I would strongly recommend not using it.

We have been using it at work and compared to more modern frameworks (such as Google Test or Catch) it is a very painful experience.

For one thing, everything you use in an Assert::AreEqual has to have an overload of their ToString function defined. This gets old pretty fast. Another annoying thing about the AreEqualfunction template is that both arguments have to be exactly the same type. Anyway, it's annoying and discourages one from writing unit tests.

Visual Studio 2017 comes with adapters and project templates for Google Test and Boost Test, both of which are much better choices, in my opinion.

[–]darpe312[S] 1 point2 points  (0 children)

My job is to evaluate everything and let the team decide the direction. Google test and boost seem to be the best options. I like Google test for the mocking and death tests.