Skip to content

Conversation

jlindgren90
Copy link
Contributor

Having UnityRunner_Verify() accessible from within tests is useful for verifying the call chain halfway through a longer, integration-style test.

This PR is basically equivalent to #376, only rebased on #454 and minimized.

Having UnityRunner_Verify() accessible from within tests is useful for
verifying the call chain halfway through a longer, integration-style test.
@mvandervoord
Copy link
Member

I'm not understanding what this is providing that we didn't already have with resetTest?

@jlindgren90
Copy link
Contributor Author

Sometimes it's useful to be able to verify that all the Expects have been fulfilled, without completely resetting the test. resetTest(), among other things, calls setUp() again, which may clear out important data that's needed in the remainder of the test.

How about just renaming CMock_Verify() to verifyCalls() or something like that? And then adding prototypes for resetTest() and verifyCalls() in unity.h? I don't think CMock_Init() and CMock_Destroy() are that useful on their own, so they probably don't need to be made public.

@mvandervoord
Copy link
Member

Added verifyTest in separate commit

@jlindgren90 jlindgren90 deleted the runner-api-v2 branch October 29, 2019 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants