cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
best framework for unit Test + mocking i
best framework for unit Test + mocking in C++?
Feb 7, 2017 at 10:28am UTC
ahmad001
(4)
hi friends
I am beginner in Unit test and mocking, and need your's help.
What is best framework for unit Test + mocking in C++ ?
Feb 7, 2017 at 6:25pm UTC
Yanson
(885)
I believe the two most common are boost test and google test. I've only used boost test myself so I can't say which is better. I use boost test because i'm likely already using boost in my project anyways.
Feb 10, 2017 at 11:00am UTC
MikeyBoy
(5631)
Where I work, we use Catch, which IMHO has a nice, intuitive syntax. Previously, I've used CPPUnit, and Google Test, which worked fine, too.
The only mocking experience I have is with Google Mock, which seems to work well, and is powerful.
Feb 11, 2017 at 6:25am UTC
ahmad001
(4)
thank you friend ....
Feb 13, 2017 at 11:10am UTC
MikeyBoy
(5631)
You're welcome.
I should have included some links:
https://github.com/philsquared/Catch
https://github.com/google/googletest
Also, for mocking, some people in my organisation have used FakeIt, and liked it:
https://github.com/eranpeer/FakeIt
Topic archived. No new replies allowed.