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
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
@dantleech
this isn't necessarily a rant about mocks
It should be 😉
=> More informations about this toot | More toots from danrot@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini