I'd like to try testing using Catch, since I really liked the fact that it allows you to write tests like "stories". The problem is that it does not come with a mocking system included.
So, I'm looking for a class mocking system for C++ which does not require defining new classes. As a consequence, I've dropped Google Mock (even though I've read there's some Python script that can auto-generate those classes, I'd really like something simpler). I would like something similar to Mockito (Java) [I've been shown an example using this].
What I've found so far:
- Fakeit - seems to have a lot of features, but does not support multiple inheritance (which, honestly, does not matter that much in my case)
- Mockitopp - Mockito for C++, looked nice, but didn't seem to have as many features as Fakeit (I guess it supports multiple inheritance, but I didn't see any indication that it supports something like: check if two methods were called in a specific order)
Could you, please, hint me to some mocking systems that behave like this (no need to define an additional mock/helper/whatever class)?
Aucun commentaire:
Enregistrer un commentaire