Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add logging on failure inside withArg#1395

Merged
Raibaz merged 2 commits intomockk:masterfrom
Djaler:withArg-logging
May 21, 2025
Merged

Add logging on failure inside withArg#1395
Raibaz merged 2 commits intomockk:masterfrom
Djaler:withArg-logging

Conversation

@Djaler
Copy link
Contributor

@Djaler Djaler commented May 17, 2025

One more fix for #707

Previous fix (#776) was reverted (#707 (comment)), but this one should not repeat the same error.

I use the same idea as in mockito-kotlin check: https://github.com/mockito/mockito-kotlin/blob/main/mockito-kotlin/src/main/kotlin/org/mockito/kotlin/Verification.kt#L285

It is not ideal, as it may print assertion errors even on verify pass (in case of many invocations), but this is how mockito-kotlin check works too. And I think this is better than nothing

@Djaler Djaler force-pushed the withArg-logging branch from 6863349 to 8750530 Compare May 18, 2025 07:05
@Djaler
Copy link
Contributor Author

Djaler commented May 20, 2025

@Raibaz hi, can you look at this, please?

@Raibaz Raibaz merged commit ef21035 into mockk:master May 21, 2025
22 checks passed
@Djaler
Copy link
Contributor Author

Djaler commented Jun 8, 2025

Can you release this, please?

@Raibaz
Copy link
Collaborator

Raibaz commented Jun 21, 2025

Done!

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