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

preview_player
Показать описание


In this video I'm going to cover:

- Custom Web Application Factory.
- Infrastructure pre-provisioning using docker and Testcontainers library.
- Pragmatic cleanup of data using Respawn library.

0:00 Biggest issue with Integration Tests
0:54 Custom WAF
3:20 Common Testcontainers setup
9:45 Reseting the database using Respawn
17:00 Outro and next steps

Link to github repository:
Рекомендации по теме
Комментарии
Автор

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?

ransandu
Автор

Thanks for the great content. I have a question regarding the database cleanup process. Should it really be inside a ClassFixture<T>? 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?

dgodiegomartins
Автор

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.

endotron
Автор

what about issue with running tests in parrallel - it will save my life

luky
Автор

Zoom in plz. Harder to watch over the phone.

sauravbhatta