InfoQ · @infoq
483 followers · 76 posts · Server techhub.social

Developers should consider using instead of !

Fake objects offer similar isolation benefits while driving high confidence, clear documentation & loose coupling between implementation and test code.

article by Tyson Gern: bit.ly/3mfL9Wc

#fakeobjects #mockobjects #infoq #UnitTesting #softwaretesting #devops

Last updated 2 years ago

J. B. Rainsberger (he) · @jbrains
944 followers · 288 posts · Server mastodon.social

You can use () without using a library/framework just the same as you can use without a container.

You don't need to feel stuck, even though I can guess how to reached the point of believing you were.

#testdoubles #mockobjects #dependencyinjection

Last updated 2 years ago

Jon Reid · @qcoding
346 followers · 146 posts · Server techhub.social

Many mock objects won't work well for ongoing maintenance. 🏗️ Here are 6 ways to improve them. qualitycoding.org/swift-mock-o

#SwiftLang #mockobjects

Last updated 2 years ago

J. B. Rainsberger (he) · @jbrains
578 followers · 205 posts · Server mastodon.social

Further to my recent discussion about / in design, I remember asking this question at a SoCraTes event in Rochegude, France:

"Are method/function expectations an disease?"

(Or something similar.)

The short answer seemed to be this: it's quite OO, but maybe not a disease. In FP we sometimes contort ourselves to turn complicated custom workflows into straightforward function composition, and it's not always worth the effort.

#testdoubles #mockobjects #oop #lightweight #EvolutionaryDesign #tdd

Last updated 2 years ago

J. B. Rainsberger (he) · @jbrains
560 followers · 191 posts · Server mastodon.social

Further to this idea, whose videos on "evolutionary design without / " would you endorse? I mean you really like them. You found them compelling and convincing. They don't have to be free.

mastodon.social/@jbrains/10943

#testdoubles #mockobjects #lightweight #EvolutionaryDesign #tdd

Last updated 2 years ago

M. Scott Ford · @mscottford
51 followers · 43 posts · Server toot.legacycode.rocks

@jbrains I would attend. I'm still a fan of using . My experience has been that the people who follow the "London" testing style (Nat Pryce and others) tend to like using them, while the people who follow the "Chicago" testing style (Sandi Metz, David Bernstein, and others) tend to not like using them.

#mockobjects

Last updated 2 years ago

J. B. Rainsberger (he) · @jbrains
532 followers · 189 posts · Server mastodon.social

I'm mulling hosting an open discussion about the widespread antipathy towards (""), because I'd like to understand more about why others have this and I don't.

I'm worried about doing this, because people can act in a way that I prefer not to experience, especially when we try to discuss such issues.

I'm curious about three things:

- Would you attend this?
- Would you watch a recording of this after the fact?
- How would you handle the "bad behavior" issue?

#testdoubles #mockobjects

Last updated 2 years ago