Skip to content

Documentation around bats-mock could be improvedΒ #80

@liamstevens

Description

@liamstevens

Hey team,

Raising this as I spent quite a while yesterday scratching my head over my stubs not behaving the way that I would have expected them to, based on both internal and external docs. Specifically this relates to the use of *, and the fact that it only matches one arg in the pattern. I know this isn't actually explicitly called out in the original repository's documentation, either.

I can see that this was brought up in a separate issue with a corresponding PR, but something a little clearer than this or with examples of usage of multiple * would be good. There's also some instances of these being escaped in the README, which doesn't appear to matter based on my testing.

It would be useful, I feel, to add a section to the BK Documentation around testing plugins that covers this. It would have saved me a lot of time and headache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions