-
December 15th, 2019, 07:21 AM
#1
Unit testing in C++?
Hey guys,
I have recently got a new job and they require unit tests everywhere, such that it will cover at least 80% of the codebase.
I am not familiar with test frameworks and/or mocking tools in C++. I wonder if you have something recommended for me, from your experience as it is a new project so I determine what framework and what mocking tool to use here.
Thank you!
-
December 15th, 2019, 11:37 AM
#2
Re: Unit testing in C++?
So what do they use on all their other older projects?
It would make sense to use what other people (who've been there longer) already know how to use.
-
December 16th, 2019, 04:18 AM
#3
Re: Unit testing in C++?
Hey Alice,
Have you written unit tests for other languages before then?
For me, I use MSTest as my testing framework because it's the most intuitive for me, along with a great mocking tool I've found just recently, that has no limitations (like other mocking tools I used before). The name is Isolator++ and it became free just a month ago. I recommend.
-
December 29th, 2019, 02:04 PM
#4
Re: Unit testing in C++?
I like google test, it's an extremely powerful framework. https://github.com/google/googletest
These days it's also supported by Visual Studio
-
February 4th, 2020, 02:54 AM
#5
Re: Unit testing in C++?
I use both MSTest and Google test.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|