Looking to start doing TDD in C++. I've seen CPPUnit, but I was wondering if there are other options that people prefer?
Thanks for your suggestions!
Looking to start doing TDD in C++. I've seen CPPUnit, but I was wondering if there are other options that people prefer?
Thanks for your suggestions!
I can recommend Google Mock, which has become part of Google Test bundled. We switched from UnitTest++ to Google Test/Google Mock a couple of years ago and have never looked back.
Google Mock can be used even if you don't want to use the mocking facilities. Its matchers are very useful.
I switched from CppUnit to boost::test some years ago and I'm much happier with it.
test_observer
but last time I tried you couldn't actually fail a test from one.If you are just looking for C++ unit test frameworks, see this question and its answers: C++ unit testing framework
© 2022 - 2024 — McMap. All rights reserved.