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 #83

Closed
lbroudoux opened this issue Dec 31, 2024 · 1 comment
Closed

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

lbroudoux opened this issue Dec 31, 2024 · 1 comment
Assignees
Labels
component/documentation Improvements or additions to documentation component/runtime Runtime behavior of test container kind/feature New 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 kind/enhancement Enhancement of existing feature component/documentation Improvements or additions to documentation kind/feature New feature component/runtime Runtime behavior of test container and removed kind/enhancement Enhancement of existing feature labels Dec 31, 2024
@lbroudoux lbroudoux added this to the 0.3.0 milestone Dec 31, 2024
@lbroudoux lbroudoux self-assigned this Jan 1, 2025
lbroudoux added a commit that referenced this issue Jan 1, 2025
Signed-off-by: Laurent Broudoux <laurent.broudoux@gmail.com>
@lbroudoux
Copy link
Member Author

Now done.

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/feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant