Use Case: SuT (software-under-test) calls several times some external function. This function sholud be mocked, the call arguments schould be checked. The call order isn't important,
The current CMock version (2.5.4) enforces the expectation registration order in test must be the same as the call order in SuT. An undesired dependency of the test on the SuT implementation arises.
Proposed feature:
- simplified: an option to relax the checking of the call order of the same function.
- more flexible: a possibility to define the call order (of cause inclusive "order doesn't matter").
Something similar is implemented by the Turtle mock library.
I realize that the C++ language gives more oppotunities that C. It might still be possible to implement a subset or something like the Turtle functionality.
Use Case: SuT (software-under-test) calls several times some external function. This function sholud be mocked, the call arguments schould be checked. The call order isn't important,
The current CMock version (2.5.4) enforces the expectation registration order in test must be the same as the call order in SuT. An undesired dependency of the test on the SuT implementation arises.
Proposed feature:
Something similar is implemented by the Turtle mock library.
I realize that the C++ language gives more oppotunities that C. It might still be possible to implement a subset or something like the Turtle functionality.