I have a bunch of module tests written in CPPunit with some mocks created by hand. I am looking for a way to migrate them to GoogleTest as smoothly as possible.
Have you tried such an operation?
What was the effort needed?
I have a bunch of module tests written in CPPunit with some mocks created
Share
Google TestandCppunitseem to share somewhat the same syntax for invoking tests but as I suspect have too much differences in that syntax.I’m almost sure you can’t somehow automate it and this operation would require rethinking and recompositioning of your tests to follow the
Google Testsemantics (if you use something specialized to create your mocks, then porting them toGoogle Mockwould require even more effort, simply becauseGoogle Mock‘s approach is not the obvious one and is actually complicated).I would say that you’d better rethink the following questions: “why do I need to port my tests”, “what would be the benefit of this operation” and “do I really want to study a whole new testing framework and then rewrite all of my tests for some purpose”.