0
Don't use mocks (joeblu.com)
submitted 1 year ago by [email protected] to c/[email protected]

Always interesting to hear different points of view on this subject. Personally I think mocks make sense to capture complex sets of interactions or otherwise difficult to reach error conditions, so I don't think it's a do or do-not kind of thing.

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 1 points 1 year ago* (last edited 1 year ago)

How would you isolate your thing for testing then without mocks? Contract Driven Development is the best thing to decouple development teams from eachother so that they can continue to work on their part as the teams have agreed on the API.

And I doubt it's different in Go.

this post was submitted on 20 Jun 2023
0 points (50.0% liked)

Golang

2162 readers
3 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS