Тёмный

Writing robust integration tests in .NET with WireMock.NET 

Nick Chapsas
Подписаться 312 тыс.
Просмотров 37 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@kaiserbergin
@kaiserbergin 3 года назад
Nice work. Been using wiremock for some time, and I'm glad to see it getting some love on your channel. I started pointing my devs to your channel as you're constantly posting useful content and do a good job at keeping on top of current features and libs. Good work, man. Thanks.
@ДмитрийК-н7и
@ДмитрийК-н7и 2 года назад
me2, the company i work in also created a custom wrap over it, @Nick consider to also cover the topic of PACT testing
@deathmachine808
@deathmachine808 3 года назад
You’ve got a really solid channel man. One day when I can actually stop working long enough to learn something else I’m going to be deep diving.
@darianferrer
@darianferrer 3 года назад
Great demo Nick! I've been using it for a couple of years and when building micro-services with multiple externals APIs it's very helpful. One thing that maybe you could expand on this topic is how to do recordings and playbacks, I've never tried that because its not that hard to setup manual requests/responses, but maybe you have experience on this.
@dimamartyshchenko2265
@dimamartyshchenko2265 2 года назад
Really nice ! Thanks for the video
@chamiz
@chamiz 2 года назад
Good work!. Thanks Nick
@vibes992000
@vibes992000 6 месяцев назад
I would be much happier if you would have shown a more real life case scenario for wiremock i.e writing request /endpoints and response contracts pair in a separate external text file rather than building them from precompiled fluent syntax. Still a good video to get started and see internal workings of wiremock web service espeically its configuration via fixtures
@diegomelgar2696
@diegomelgar2696 4 месяца назад
Hi @Nick, great video, something that is very useful for testing!!! Is it possible or how can I have access to this repo or is there a video about de Fixture that you use to create a User in the database? I was searching in your channel if you have a video with title that contains "Fixture" but I don't really know if you have one that explains how to create fixtures. Thanks!!!
@diegomelgar2696
@diegomelgar2696 4 месяца назад
Or is it used for creating data with random data? I thoroughly inspect this video and see that you use AutoFixer library. Is it used for making objects with random data? I know the concept of factories in Laravel, that is a feature to create random objects to insert in database
@ofiry
@ofiry Год назад
Great video Nick, can u explain why this is better then mocking the httpclient
@vespuxi2516
@vespuxi2516 Год назад
Beautiful
@aaronkoller8811
@aaronkoller8811 3 года назад
Wire mock does look like a great tool. Maybe I am missing something here, why not just use the Microsoft TestServer where in the client you can use Moq to mock any external dependencies/responses?
@StefHeyenrath
@StefHeyenrath 3 года назад
Correct, in the example code there is an interface (Refit) to connect to GitHub. So in this case, it was also possible to completely stub this using Mock. However in case the client, which connects to a 3rd party system, cannot be mocked, or if you want to run a more integration-test like test, then WireMock.Net can be used to mock the request with certain responses from that 3rd Party system. Also note that you can also use response templating, which enables you to create not just static responses but also dynamic response based on properties from the request.
@Mrnik123s
@Mrnik123s 3 года назад
Nice. Do I need to dispose of wiremock server after use ?
@amazotv8382
@amazotv8382 2 года назад
Hi Nick, can this be used with mstest framework and not xunit?
@clearlyunwell
@clearlyunwell 3 года назад
👍🏽
Далее
8 await async mistakes that you SHOULD avoid in .NET
21:13
Rate our flexibility 1-10🔥👯‍♀️😈💖
00:12
ИСТОРИЯ ПРО ШТАНЫ #shorts
00:32
Просмотров 300 тыс.
skibidi toilet 77 (part 4)
05:20
Просмотров 12 млн
ДУБАЙСКАЯ ШОКОЛАДКА 🍫
00:55
Просмотров 2,3 млн
When To Unit, E2E, And Integration Test
14:58
Просмотров 100 тыс.
Writing tests in .NET using xUnit -  xUnit Tutorial
25:50
Fix Your Controllers By Refactoring To Minimal APIs
14:56
Testing in .NET is About to Change
12:54
Просмотров 76 тыс.
You are doing .NET logging wrong. Let's fix it
25:29
Просмотров 174 тыс.
You are mocking the HttpClient the wrong way
13:56
Просмотров 50 тыс.
Don't Use AutoMapper in C#! Do THIS Instead!
16:17
Просмотров 70 тыс.
Rate our flexibility 1-10🔥👯‍♀️😈💖
00:12