Skip to content

Error messaging for verification with incorrect called value could be more helpful by listing calls #148

Open
@alanrussian

Description

@alanrussian

Here's a sample error message:

Expected: <3>...
Expected: <3>
  Actual: <2>
Unexpected number of calls
package:test                                                                                        expect
package:mockito/src/mock.dart 666:5                                                                 VerificationResult.called

This message would be a lot more useful if it listed the interactions with the subject being verified. In this case, it could list the two calls that were made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions