Ask HN: What is a good C++ unit test framework for a startup?
Don't have a ton of code or test cases yet - just three months into a startup with four developers.
Looking for something relatively lightweight, with a small learning curve, that can keep us honest for the next year or two. I've used CppUnit in the past. Didn't hate it. Wondering if there's something better.
Do you have opinions on this? Looking for your war stories, whether good, bad, or plain ugly.
6 comments
[ 3.0 ms ] story [ 25.6 ms ] threadI used CppUTest on a c++ project to test algorithms for image and video manipulation. It worked fantastically, very easy to learn, and it helped test drive and optimize the algorithms. Highly recommended.
Edit: fixed typos, typing on phones is hard.
https://github.com/philsquared/Catch
Previous HN discussion (with some other suggestions):
https://news.ycombinator.com/item?id=8220352
and a relevant StackOverflow thread:
https://stackoverflow.com/questions/87794/c-unit-testing-fra...
There is also lest:
https://github.com/martinmoene/lest
bandit:
https://github.com/joakimkarlsson/bandit
cpputest:
https://github.com/cpputest/cpputest