.NET Core Integration Testing Basics

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


In this video we will cover following topics:
1. Basic setup you need to run an integration test
2. What is and how to use WebApplicationFactory
3. Creating a basic test
4. Cleaning up the test data after a successful test run

0:00 Intro & Basic Setup
4:30 Writing our first test
8:50 The problem with left over data
12:50 Testing our problems
14:17 Outro

Things that were modified from the previous video (for minimal API course)
1. Rename of the project from HabitTrackerAPI to HabitTracker.Api
2. Solution was moved to root folder
3. src and tests folders were added.
4. Create endpoint line 79 was added.
Рекомендации по теме
Комментарии
Автор

so far the best tutorial for integration testing thank you :)

azizhmidi
Автор

The trick with empty marker interface does the job, thanks man!

Morinslash
Автор

Nice tutorial. I'm very interested in your project :)

igornowicki
Автор

Stupid question here, why didn't you make use of the testing package such as mocking and wiremock for the API. Or could we get another video the that adds on to this project, would be very helpful thanks 🙏

jephrennaicker