2

My team and I are looking for a mocking framework for C and C++ on Linux. We have a huge codebase that we want to test, so the most important thing for us is having a mocking framework that will allow us not to change our legacy code in order to write tests. Does anyone know such mocking framework?

2

We use Typemock's Isolator++, this is the most friendly mocking tool i encountered for C. The mocking abilities is extremely friendly because 100% of your code remains comepletely untouched. This framework allows you to fake every kind of method or class and control the methods behavior. It also integrates with GoogleTest which we use in my team and it works smoothly.

  • Thanks Ilan! we took your advice and we're evaluating Isolator++ now. So far it looks great! – HilaB Jun 3 '18 at 9:40
1

My team and I also use Isolator++. I like how it integrates with Google Test.

  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review – Jan Doggen Jun 7 '18 at 11:13
  • Why would you say it does not provide an answer? the question is: does anyone know a mocking framework for C/C++ on Linux? my answer is: Isolator++. – JamesR Jun 10 '18 at 8:46
  • Sorry, it is a 'me too'. 'Not an answer' was the best flag I could find (downvoting was also an option). This was already suggested as an answer. If you have any factual information to add to that answer (which you don't in this text), edit it in or add a comment there. – Jan Doggen Jun 10 '18 at 9:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.