Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to get invocations count of a mock service #24

Open
lbroudoux opened this issue Jan 7, 2025 · 0 comments
Open

Add methods to get invocations count of a mock service #24

lbroudoux opened this issue Jan 7, 2025 · 0 comments
Labels
component/documentation Improvements or additions to documentation component/runtime Runtime behavior of test container kind/enhancement Enhancement of existing feature
Milestone

Comments

@lbroudoux
Copy link
Member

Reason/Context

As of today, we lack of methods on MicrocksContainer class that could return the invocations count of a service mock.
This data is available in admin console, and is accessible via Metrics resource in REST API. So we would like to have this data easily available, we think it could be benefit for many.

And why do we need to check this invocation count ?

To be sure the mock as been invoked by the application we are covering with integration tests.
Without having this invocations count, we are not able to know whether our application had the correct behaviour or not.

Description

In summary : it would be like what we do when we call the "verify" method of "Mockito".

Implementation ideas

No response

@lbroudoux lbroudoux added component/documentation Improvements or additions to documentation kind/enhancement Enhancement of existing feature component/runtime Runtime behavior of test container labels Jan 7, 2025
@lbroudoux lbroudoux added this to the 0.3.0 milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/documentation Improvements or additions to documentation component/runtime Runtime behavior of test container kind/enhancement Enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

1 participant