Skip to content

discuss tradeoffs for mocking #90

@maxheld83

Description

@maxheld83

🙏 so much for pulling all of this together for testing API wrapper packages -- this is a godsend.

I randomly came across arguments against mocking (or rather, there's tradeoffs involved) and some of them struck a chord:

My summary would be:

  1. there's a cost in complexity to mocking
  2. some pkgs need more, other need less (none) mocking, roughly depending on how central I/O is to test coverage.
  3. the need for mocking can mask a lack of uncoupling in the overall design.

I'd be happy to write this up (worded very carefully) in a 2-3 paragraphs and add a PR if you're interested in featuring this angle at all.

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