.NET Core Integration Testing Basics #2- Infrastructure pre-provisioning & Data Cleanup

  Рет қаралды 2,325

Vasilii Oleinic

Vasilii Oleinic

Күн бұрын

Пікірлер: 15
@ransandu
@ransandu 2 ай бұрын
Thanks for this. I got a question. Sqledge container is for IOT dbs right? Does it work for other general business applications? I mean, can the Sqledge replace a RDBMS like MSSQL or Postgresql?
@vasiliioleinic
@vasiliioleinic 2 ай бұрын
@@ransandu hi, technically it cloud. I never did it myself tho, using postgresql 90% of the time. I used sqledge in the video because it was the only option that was working with arm based macs (at the time I recorded the video), since then other providers stepped their game.
@ransandu
@ransandu 2 ай бұрын
@@vasiliioleinic thanks for the clarification
@dgodiegomartins
@dgodiegomartins 5 ай бұрын
Thanks for the great content. I have a question regarding the database cleanup process. Should it really be inside a ClassFixture? My concern is that each test should be independent, and with the current approach, we are using the same data across multiple tests within the test class. Is that correct?
@vasiliioleinic
@vasiliioleinic 5 ай бұрын
Hi, yes, IMO the cost of spinning up a new instance of the API and Database for every test method in a class is overkill. This is why we spin up one api/db/etc per test class, hence we need that cleanup process which efectively resets the whole setup to a clean/default state after every test method. Edit just to make clear: if the clean-up process works correctly the data generated by a test should not be there when the next test runs, and every test will run against an clean* database.
@jephrennaicker4584
@jephrennaicker4584 Жыл бұрын
Thanks I learnt alot!
@vasiliioleinic
@vasiliioleinic Жыл бұрын
Glad I cloud help :)
@endotron
@endotron 6 ай бұрын
Great video, I can't seem to resolve IApiMarker - is that because of a particular nuget package I'm missing, usually VS is good about pointing that out. Any help is appreciated.
@vasiliioleinic
@vasiliioleinic 6 ай бұрын
Hi, thats an empty marker interface I created in part 1 inside the API
@endotron
@endotron 5 ай бұрын
@@vasiliioleinic Oh sorry I must have skipped part 1. Thank you!
@luky92121
@luky92121 10 ай бұрын
what about issue with running tests in parrallel - it will save my life
@vasiliioleinic
@vasiliioleinic 10 ай бұрын
Can you elaborate on that a bit?
@sauravbhatta5303
@sauravbhatta5303 Жыл бұрын
Zoom in plz. Harder to watch over the phone.
@vasiliioleinic
@vasiliioleinic Жыл бұрын
Sure will do starting next video.
@milosristic4091
@milosristic4091 Жыл бұрын
It's good you haven't watched it on your smartwatch :D
The Best Way To Use Docker For Integration Testing In .NET
19:34
Milan Jovanović
Рет қаралды 38 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Coding Short: Is This Thing On? Testing APIs in .NET Core
19:33
Shawn Wildermuth
Рет қаралды 4,4 М.
Why and how to learn backend engineering with Go?
41:44
K Srinivas Rao
Рет қаралды 1,8 М.
Pull data from API using Python
6:27
The BI Hub
Рет қаралды 52 М.
The cleanest way to use Docker for testing in .NET
13:36
Nick Chapsas
Рет қаралды 91 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 112 М.
Quick API Endpoints Using Data API Builder
12:35
Microsoft Developer
Рет қаралды 11 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 220 М.
Don't throw exceptions in C#. Do this instead
18:13
Nick Chapsas
Рет қаралды 264 М.
Web Application architecture
15:53
Vasilii Oleinic
Рет қаралды 6 М.