Skip to content

What's the best way to reset the MockPool between tests? #3619

Closed Answered by metcoder95
schaable asked this question in Q&A
Discussion options

You must be logged in to vote

I'd recommend to not re-use the mocks across test scenarios but isolate each scenario, and individually assign their mocks, so scenarios like this can be avoided.

Having global shared mocks (almost) always lead to hard to solve inconsistencies

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@schaable
Comment options

@metcoder95
Comment options

Answer selected by schaable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants