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

Display argument values if they mismatch #13

Closed
paweldudek opened this issue Jun 22, 2017 · 1 comment
Closed

Display argument values if they mismatch #13

paweldudek opened this issue Jun 22, 2017 · 1 comment

Comments

@paweldudek
Copy link
Collaborator

paweldudek commented Jun 22, 2017

Right now if we get arguments mismatch Mimus will print out

failed - Call with identifier x was recorded, but arguments didn't match

Which is a bit too cryptic, we could use Swifts CustomStringConvertible and String(describing: ) to display captured and expected values, this would be helpful when debugging failures.

Edit: OCMockito has an amazing reporting similar to what we want to achieve here:

Argument(s) are different!
Wanted: start:"Fixture App Center Identifier" withServices:<(
)>
Actual invocation has different arguments:
start:@"Fixture App Center Identifier" withServices:@[MSAnalytics, MSCrashes]

Mismatch in 2nd argument. Expected <(
)>, but was <(
    MSAnalytics,
    MSCrashes
)>

MyApp -[AppConfigurator configureAppWithConfiguration:] + 397
@paweldudek
Copy link
Collaborator Author

Thanks @Eluss for implementing this! Closed by #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant