Ancestors

Written by Dan Leech on 2025-01-28 at 18:20

another day another bug: In one corner we have a beautifully crafted 500 line test which exqusitely mocks all it's dependencies.in the other corner a blatant bug on production.

I'm in the call and ask to reproduce the issue and much message-queuing and clicking begins.

I ask them to run the test, but the beautiful test doesn't reproduce the issue.

In 10 seconds I write an integration test for the specific class and reporoduce the issue and it's fixed minutes later.

=> More informations about this toot | More toots from dantleech@fosstodon.org

Toot

Written by Dan Leech on 2025-01-28 at 18:21

the integration test features 1/10th of the code and delivers about 1000% more value*.

not only that but it's 5000% more maintainable*.

this isn't necessarily a rant about mocks (although I hate them so), but it is certainly a rant about inappropriate mocking.

=> More informations about this toot | More toots from dantleech@fosstodon.org

Descendants

Written by Daniel Rotter on 2025-01-29 at 09:13

@dantleech

this isn't necessarily a rant about mocks

It should be 😉

=> More informations about this toot | More toots from danrot@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113907367287363789
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
261.904943 milliseconds
Gemini-to-HTML Time
0.486001 milliseconds

This content has been proxied by September (3851b).