I apparently missed this post from @maelle on #mocking #tests in #RStats packages, specifically recommending `testthat::local_mocked_bindings()` over `mockery::stub()` and giving a clear example of how to mock base functions.
https://blog.r-hub.io/2024/03/21/mocking-new-take/
Very pertinent today as one of the codebases I'm working on used `mockery::stub()` and my colleague found that it was leaking to other tests in a pattern that could only be described as...
vicious mockery (roll 1d4 for damage)
#PeteButtigieg #slams #DonaldTrump for #mocking #McDonald’s #workers in just one #sentence.
Trump said he would get a "#Frenchfry #job" at #McDonald's to prove that #fastfood #jobs aren't hard.
— He wants to do it for 30 minutes, because he wouldn't last out a single shift.
Finally, the Democrats Have Found Trump’s Achilles’ Heel: Ridicule Him
Kamala Harris gets it. Yes, we should fear Trump—but we should also mock him mercilessly, because it drives him nuts
https://newrepublic.com/article/185270/democrats-harris-trump-achilles-heel-ridicule
I'm looking for a way to test my #PHP #Symfony application #BehaviourDriven using #TDD without getting into DI #mocking hell. Currently ~90% of my tests consist of (mockery) mocks and their expectations. Are there ways/approaches to reduce this mocking on unit test level and focus more on the expected behaviour of the functions without having to constantly adapt the mocks during refactorings?
Any ideas/ tools/ articles/ videos/ composer packages?
…but in case any of you want to do something similar, here’s me mocking a WritableStream using a Proxy to provide mock stdout and stderr streams to Console instances to capture the output and save them in my database:
https://codeberg.org/kitten/app/src/branch/logs/src/Logs.js#L47
And here’s the actual monkeypatching code:
https://codeberg.org/kitten/app/src/branch/logs/src/Logs.js#L140
Audience laughs as SNP’s leader Stephen Flynn mocks Nigel Farage at BBC debate
It came after the SNP Westminster leader answered a question about immigration during the seven-way BBC election debate.
Farage then said he wanted to inject some “logic” into the discussion, to which Flynn replied: “That would be a novelty for you.”
This led to laughs in the audience.
#USWNT #PlayersAssociation declares '#trans #rights are #humanrights' in wake of #KorbinAlbert #controversy
Albert has been embroiled in #controversy after sharing #antiLGBTQ+ #posts on #socialmedia and also liking #content #mocking #MeganRapinoe.
#Women #Transgender #LGBTQ #LGBTQIA #Entertainment #Soccer #Allies #Conservatives #Extremism #Hate #Bigotry #Homophobia #Transphobia
The #Toxic #SocialMedia #Hellsite #Twitter (#X) #pays thousands to #account #blasted for ‘#mocking’ #child’#s suicide.
Ads appearing on the account include include #LGElectronics, #Nordace, #Trulieve, #Buzznet, #Knightscope, and #OnlineShoppingTools, among others. None of the #companies immediately responded to #RequestsForComments on Monday.
#Women #Transgender #LGBTQ #LGBTQIA #SocialMedia #Business #Hate #Bigotry #Violence #Transphobia #NoPlatformForHate
https://www.dailydot.com/news/twitter-monetizes-account-mocked-childs-death/
"Morning Joe" panel mocks Lindsey Graham for enduring "ritualistic humiliation" at Trump rally
Greg Abbott duped by fake news story mocking Garth Brooks
https://www.newsweek.com/greg-abbott-duped-fake-news-story-mocking-garth-brooks-1808909
(IMAGE ID: "#MOCKING OTHER #TRANS #PEOPLE WILL NOT MAKE YOU THE #EXCEPTION TO #CIS #HATRED BUT I HOPE THOSE #BOOTS TASTED GOOD" in red text with a black shadow. the background image is a blurry black and white photo of a man #licking boots. END)
#bootlicker #bootlickersnotwelcome #bootlickers
Did you know that you can mock easily in C using objcopy? Here's an example. https://github.com/christianhujer/aceunit/tree/trunk/examples/hello_world_mocked #TDD #UnitTesting #Mocking
Unterschied zwischen Testabdeckung und Codeabdeckung?
Die Code
https://www.dev-crowd.com/2022/11/07/unterschied-zwischen-testabdeckung-und-codeabdeckung/
#ExplorativesTesten #LoadandPerformance #Mocking #Penetrationtest #Projektmanagement #RestAPI #TestEngineering #Testautomatisierung #Testframework #Testlink #Testmanagement #Testplan #Testsuites #Tools #Apptesting #Codecoverage #crossbrowsertesting #flakytesting #ManualTesting #Penetrationtesting #pytest #Regressiontesting #testcoverage