Integration testing is a software testing technique, where individual units of a program are integrated together and tested as a group for interacting harmoniously with each other. It concerns the testing of interactions and interfaces between modules, components, or systems to see if they behave as expected once integrated.
📢 Always use real database for integration testing instead of InMemory Db.
Purpose
- This is to ensure that various components or modules behave according to expectation.
- In the case of integration, to find out whether there are problems concerning interfaces or inconsistencies in data.
- Verifying whether it meets the set specifications and functionality of an integrated system.
Tech Used in this project
- .Net 8 web APIs (controller)
- Sqlite
- EntityFrameworkCore
- xUnit
- In Memory Database (for testing)
Let’s get started
Create a sln file (I have named it PersonGithubActionsDemo) with two projects
[Read More]