#mocks — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #mocks, aggregated by home.social.
-
Wenn du mit Java Tests schreibst, stößt du ziemlich schnell auf ein Problem: Deine Klasse arbeitet oft nicht allein. Sie ruft andere Klassen auf, spricht vielleicht mit einer Datenbank, nutzt eine externe API oder verschickt Nachrichten. Genau an der Stelle kommt Mockito ins Spiel.
https://magicmarcy.de/java-testen-mit-mockito-die-grundlagen-ohne-unnoetigen-ballast
#Mockito #Test #Coding #Java #Mocks #Abhängigkeiten #JUnit #Programming
-
Ich kann jetzt sagen, ich bin mit einem publizierten* Autor** verheiratet.
* bei heise.de
** von genau einem Fachartikel -
Ich kann jetzt sagen, ich bin mit einem publizierten* Autor** verheiratet.
* bei heise.de
** von genau einem Fachartikel -
Scaling the #Testing Pyramid in #TypeScript starts soon at #KCDC. We'll learn about #mocks, #UnitTests, #ComponentTests, #Cypress, and much more. https://www.kcdc.info/ Slides: https://robrich.org/slides/web-test-all-the-things/, Code: https://github.com/robrich/web-test-all-the-things
-
Scaling the #Testing Pyramid in #TypeScript starts soon at #KCDC. We'll learn about #mocks, #UnitTests, #ComponentTests, #Cypress, and much more. https://www.kcdc.info/ Slides: https://robrich.org/slides/web-test-all-the-things/, Code: https://github.com/robrich/web-test-all-the-things
-
Frontend и OpenAPI: генерация клиента, мокирование API и данных с помощью MSW
Генерация кода по спецификации OpenAPI и мокирование запросов - эффективный способ автоматизировать процессы разработки и решить некоторые специфические задачи. В статье описано применение различных инструментов, которые могут быть использованы при генерации и мокировании.
-
Тестируемый код в Golang
Когда я вижу очередную статью или видеоурок про тестирование кода, я почти уверен, что мне опять расскажут про моки. Создаётся впечатление, что это самый лучший и правильный способ писать тесты, и вообще, невозможно обойтись без моков. Это не так! Можно писать тестируемый код без моков. Более того, использование моков следует избегать и использовать их только в специфичных случаях.
-
Testing Without Mocks: A Pattern Language (2023)
https://www.jamesshore.com/v2/projects/nullables/testing-without-mocks
#HackerNews #Testing #Without #Mocks #Pattern #Language #Programming #Testing #Strategies
-
Testing Without Mocks: A Pattern Language (2023)
https://www.jamesshore.com/v2/projects/nullables/testing-without-mocks
#HackerNews #Testing #Without #Mocks #Pattern #Language #Programming #Testing #Strategies
-
#American-Israeli #comedian #embarrasses himself in a recent stand up show where he #mocks the #suffering of #Palestinians
#video #classwar #palestine #gaza #rafah #freepalestine #usa #america #israel #israhell #fuckisrael #antiisrael
-
#American-Israeli #comedian #embarrasses himself in a recent stand up show where he #mocks the #suffering of #Palestinians
#video #classwar #palestine #gaza #rafah #freepalestine #usa #america #israel #israhell #fuckisrael #antiisrael
-
Backend-for-Frontend (BFF): решение проблемы взаимодействия фронтенда и бэкенда
В современной разработке веб-приложений одной из ключевых проблем является несовместимость между фронтендом и бэкендом. Фронтенд-команды часто вынуждены ждать, пока бэкенд предоставит необходимые API, а бэкенд-разработчики тратят время на адаптацию логики под изменения в интерфейсе. Это приводит к задержкам в разработке, сложностям в тестировании и постоянным несоответствиям в данных. Что такое Backend-for-Frontend (BFF)? Backend-for-Frontend (BFF) — это архитектурный паттерн, который помогает устранить разрыв между фронтендом и бэкендом. BFF выступает промежуточным слоем, который адаптирует данные и логику бэкенда под нужды конкретного фронтенда. Это позволяет фронтенд-командам работать с API сразу, а бэкенд-разработчикам подключать логику по мере готовности, что значительно ускоряет процесс разработки и снижает количество доработок.
https://habr.com/ru/articles/880964/
#frontendразработка #backendразработка #javascript #expressjs #node #bff #mocks #api
-
@fazzaro Really nice article, thanks for sharing it!
It has been a few years now since I began to think that dynamic #mocks really get in the way of #refactoring by really coupling the tests with the implementation.
I like how the author points out how they are breaking encapsulation and the solution he offers to address the problem.
I'm a bit skeptical about the scalability of that solution though, and that's the reason I still use mocking frameworks, but try to rely on them the least I can. But hey, I'll try his approach on a small project soon, and see what comes out of it!
-
@fazzaro Really nice article, thanks for sharing it!
It has been a few years now since I began to think that dynamic #mocks really get in the way of #refactoring by really coupling the tests with the implementation.
I like how the author points out how they are breaking encapsulation and the solution he offers to address the problem.
I'm a bit skeptical about the scalability of that solution though, and that's the reason I still use mocking frameworks, but try to rely on them the least I can. But hey, I'll try his approach on a small project soon, and see what comes out of it!
-
"You need tests that don't break when you refactor. When you use dynamic mocks, tests tend to fail whenever you make changes in SUTs. Even though you have tests, they don't enable refactoring."
#softwareengineering #softwarearchitecture #tdd #unittests #mocks #testdoubles
https://blog.ploeh.dk/2022/10/17/stubs-and-mocks-break-encapsulation/
-
"You need tests that don't break when you refactor. When you use dynamic mocks, tests tend to fail whenever you make changes in SUTs. Even though you have tests, they don't enable refactoring."
#softwareengineering #softwarearchitecture #tdd #unittests #mocks #testdoubles
https://blog.ploeh.dk/2022/10/17/stubs-and-mocks-break-encapsulation/
-
Endlich habe ich gelernt, wie bei #Nextcloud #Apps die #Unit #Tests geschrieben werden. Ich verstehe jetzt die Arbeit mit #Mocks.
https://github.com/nextcloud/forms/pull/1690
dieser Absatz hat mir u.a. geholfen:
https://martinfowler.com/articles/mocksArentStubs.html#TestsWithMockObjects -
"You need tests that don't break when you refactor. When you use dynamic mocks, tests tend to fail whenever you make changes in SUTs. Even though you have tests, they don't enable refactoring."
#softwareengineering #tdd #fakes #vs #mocks
https://blog.ploeh.dk/2022/10/17/stubs-and-mocks-break-encapsulation/
-
"You need tests that don't break when you refactor. When you use dynamic mocks, tests tend to fail whenever you make changes in SUTs. Even though you have tests, they don't enable refactoring."
#softwareengineering #tdd #fakes #vs #mocks
https://blog.ploeh.dk/2022/10/17/stubs-and-mocks-break-encapsulation/
-
https://github.com/JasonBock/Rocks - Rocks: #Roslyn #SourceGenerators based #Mocks. No reflection penalty. Really cool @jasonbock.
-
https://github.com/JasonBock/Rocks - Rocks: #Roslyn #SourceGenerators based #Mocks. No reflection penalty. Really cool @jasonbock.
-
#dotNET #Testing #BestPractices is a #NoSlides talk where we build a suite of tests, learn about #Mocks and #refactoring. Join us at #BASTA! in #Mainz #Germany. https://basta.net/mainz-en/ and grab the code at https://github.com/robrich/net-testing-xunit-moq.
-
#dotNET #Testing #BestPractices is a #NoSlides talk where we build a suite of tests, learn about #Mocks and #refactoring. Join us at #BASTA! in #Mainz #Germany. https://basta.net/mainz-en/ and grab the code at https://github.com/robrich/net-testing-xunit-moq.
-
'#DailyShow' #brutally #mocks #Trump's attempt to make an '#intellectual' #speech, "Girl, you gotta move on."
The #Republican #presidential #candidate spent his
#pressconference, #waffling on about #President #JoeBiden, #VicePresident #KamalaHarris' laugh, and even #FormerPresident #BarackObama.https://mashable.com/video/daily-show-trump-intellectual-speech
-
'#DailyShow' #brutally #mocks #Trump's attempt to make an '#intellectual' #speech, "Girl, you gotta move on."
The #Republican #presidential #candidate spent his
#pressconference, #waffling on about #President #JoeBiden, #VicePresident #KamalaHarris' laugh, and even #FormerPresident #BarackObama.https://mashable.com/video/daily-show-trump-intellectual-speech
-
#RichardDreyfuss #mocks #trans #youth in #bizarre #rant at “#Jaws” #film #screening.
He #claimed that a #trans #kid may also #identify as an #octopus one day.
#Conservatives #Extremism #Fascism #Religion #RepublicanParty #Hate #Bigotry #Violence #Genocide #Discrimination #Transphobia #PunchingDown #ThePartyOfHate #EmptyThePews -
#RichardDreyfuss #mocks #trans #youth in #bizarre #rant at “#Jaws” #film #screening.
He #claimed that a #trans #kid may also #identify as an #octopus one day.
#Conservatives #Extremism #Fascism #Religion #RepublicanParty #Hate #Bigotry #Violence #Genocide #Discrimination #Transphobia #PunchingDown #ThePartyOfHate #EmptyThePews -
📦 Microcks @quarkusio Dev Service version 0.2.4 is out! Grab it while it's hot! 🔥
It provides live reloads of your @openapi, @AsyncAPISpec, @graphql and @Grpc schemas to always have fresh #mocks!
🙏 Romain Quinio, for the great idea!
-
📦 Microcks @quarkusio Dev Service version 0.2.4 is out! Grab it while it's hot! 🔥
It provides live reloads of your @openapi, @AsyncAPISpec, @graphql and @Grpc schemas to always have fresh #mocks!
🙏 Romain Quinio, for the great idea!
-
📦 The new 0.2.7 release of our Microcks #Testcontainers #Java module is out! 🔥
You can now directly import full repository snapshots 📸 with tons of #mocks from a single source of truth!
-
📦 The new 0.2.7 release of our Microcks #Testcontainers #Java module is out! 🔥
You can now directly import full repository snapshots 📸 with tons of #mocks from a single source of truth!
-
#StephenColbert Punches Through Donald #Trump’s Favorite #Myth About #Himself
“#TheLateShow” #host #mocks the #formerpresident after an unexpected #confession.“He’s not a real #rich #guy, he just plays one on #TV. Donald #Trump has a #billiondollars the same way #PatrickStewart has a #spaceship.”
https://www.huffpost.com/entry/stephen-colbert-trump-rich_n_66025900e4b07e128577d1fe
-
#StephenColbert Punches Through Donald #Trump’s Favorite #Myth About #Himself
“#TheLateShow” #host #mocks the #formerpresident after an unexpected #confession.“He’s not a real #rich #guy, he just plays one on #TV. Donald #Trump has a #billiondollars the same way #PatrickStewart has a #spaceship.”
https://www.huffpost.com/entry/stephen-colbert-trump-rich_n_66025900e4b07e128577d1fe
-
I'm excited to present "Scaling the #Testing #Pyramid in #TypeScript at #UtahJS. I'll demo #UnitTests, #IntegrationTests, #Mocks, #EndToEndTests. Join us #InPerson! https://www.meetup.com/utahjs/events/297934075/, slides: https://robrich.org/slides/web-test-all-the-things/, code: https://github.com/robrich/web-test-all-the-things
-
I'm excited to present "Scaling the #Testing #Pyramid in #TypeScript at #UtahJS. I'll demo #UnitTests, #IntegrationTests, #Mocks, #EndToEndTests. Join us #InPerson! https://www.meetup.com/utahjs/events/297934075/, slides: https://robrich.org/slides/web-test-all-the-things/, code: https://github.com/robrich/web-test-all-the-things
-
"Scaling the #Testing Pyramid in #TypeScript" is a great code-focused talk on all things testing: #UnitTests, #ComponentTests, #EndToEndTests, and #Mocks. Join us #InPerson at #ConFoo https://confoo.ca/en/2024, code: https://github.com/robrich/web-test-all-the-things, slides: https://robrich.org/slides/web-test-all-the-things/
-
"Scaling the #Testing Pyramid in #TypeScript" is a great code-focused talk on all things testing: #UnitTests, #ComponentTests, #EndToEndTests, and #Mocks. Join us #InPerson at #ConFoo https://confoo.ca/en/2024, code: https://github.com/robrich/web-test-all-the-things, slides: https://robrich.org/slides/web-test-all-the-things/
-
Daltaí agus múinteoirí ag an am seo den bhliain: Students and teachers at this time of the year
www.eascapeasca.ie
#meme #memeasgaeilge #Gaeilge #irish #learnirish #irishclasses #onlinecourses #onlineshop #onlineclasses #mocks
-
How do you write #UnitTests for #dotNET? Join us for #Cleveland C# User Group where we'll discuss ".NET #Testing #BestPractices". It's a #NoSlides talk where we take an #IoT project and write tests, #refactoring along the way, and learning about #mocks. Join us: https://www.meetup.com/cleveland-csug/events/298012428, code: https://github.com/robrich/net-testing-xunit-moq.
-
How do you write #UnitTests for #dotNET? Join us for #Cleveland C# User Group where we'll discuss ".NET #Testing #BestPractices". It's a #NoSlides talk where we take an #IoT project and write tests, #refactoring along the way, and learning about #mocks. Join us: https://www.meetup.com/cleveland-csug/events/298012428, code: https://github.com/robrich/net-testing-xunit-moq.
-
#LilNasX #Mocks #Critics Calling Him a ‘#DevilWorshiping #Pop-#Artist’ on New ‘#SaveNasX’ #Website.
Lil Nas X’s “#ChristianEra” now involves a #website asking people to “#save” him from #Satan.
#Women #Transgender #LGBTQ #LGBTQIA #Entertainment #Music #Representation #Culture
-
#LilNasX #Mocks #Critics Calling Him a ‘#DevilWorshiping #Pop-#Artist’ on New ‘#SaveNasX’ #Website.
Lil Nas X’s “#ChristianEra” now involves a #website asking people to “#save” him from #Satan.
#Women #Transgender #LGBTQ #LGBTQIA #Entertainment #Music #Representation #Culture
-
#DonaldTrump’s #lesbian #niece #viciously #mocks him for his latest “#pathetic” #grift to make #money
"I swear I thought it was a #joke."
#Women #Transgender #LGBTQ #LGBTQIA #Florida #Conservatives #Extremism #Fascism #Grifting #RepublicanParty
-
#DonaldTrump’s #lesbian #niece #viciously #mocks him for his latest “#pathetic” #grift to make #money
"I swear I thought it was a #joke."
#Women #Transgender #LGBTQ #LGBTQIA #Florida #Conservatives #Extremism #Fascism #Grifting #RepublicanParty
-
#RICO #Defendant And Black Voices For #Trump Leader Foolishly #Mocks, #Taunts #FultonCounty #DA #FaniWillis: ‘Stop #ChasingClout’
#HarrisonFloyd joined his #MAGA #messiah in being unable to stop #ranting on #socialmedia about the #charges against him and the #DA who brought them.
#Women #Transgender #LGBTQ #LGBTQIA #Conservatives #Extremism #Fascism #RepublicanParty #Hate #Bigotry #Violence #Genocide #Discrimination #Homophobia #Transphobia #ThePartyOfHate
https://newsone.com/4753765/harrison-floyd-taunts-fani-willis/
-
If people actually read “XUnit Test Patterns: Refactoring Test Code” by G. Meszaros maybe they’d understand what test doubles are, or when/why to use them. Maybe they wouldn’t write how they hate “mocks”, but focused on merits of their approach.
There’s so much misunderstanding and non-constructive criticism in our profession. I really admire those few people I know who strive to write from a positive angle. I’m not sure if I’d be able to doit.
-
#dotNET #Testing #BestPractices is a #NoSlides talk where we #LiveCode a bunch of #UnitTests, talk about testing strategies, #Mocks, and #DevOps. Grab the code at https://github.com/robrich/net-testing-xunit-moq and join us at #ICSCon.