• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

De Facto standard unit testing framework for C/C++?

We use the Boost test suite for all our unit testing needs at work. There's also cppunit, but I haven't used that since college.
 
Not sure if there's a de-facto standard for C/C++ but my organization used cxxtest for unit testing which is an open source unit testing framework for C++.

Good luck
 
I've been trying to make this decision as well. Having not tried either, it looks like boost.test and googletest are the best options available right now (best in my opinion, measured by feature set & likelihood of continued future support/development). I'm leaning toward googletest but if other people at work are already using boost, then I think there's little reason to introduce more dependencies; i.e., googletest isn't substantially better.

Both of these are kinda heavy in the footprint department so if you want something really lightweight, I think there are things like cutest for C++.

You can search around for some well-informed comparisons of various C++ testing frameworks. Wikipedia is a decent starting place in terms of just listing out which frameworks have what [commonly] desired options. I'll say that the direct analogues of things like junit are *not* what you want in C++; those frameworks are pain.
 
also, while not putting anand's programming section down, you'd get alot more attention, experience and numbers at places like stackoverflow and codeproject.
 
also, while not putting anand's programming section down, you'd get alot more attention, experience and numbers at places like stackoverflow and codeproject.

I'll give you attention and numbers. Experience? Not so much.
 
Back
Top