-
Notifications
You must be signed in to change notification settings - Fork 56
Home
Jon P Smith edited this page Nov 16, 2017
·
19 revisions
The NuGet package EfCore.TestSupport is a netstandard2.0 library containing methods to help you unit test applications that use Entity Framework Core for database access.
This wiki defines the various groups and the signatures of the methods. The various groups of methods are:
- Helpers to create an in-memory Sqlite database for unit testing
- Helpers to create an InMemory database for unit testing
- Helpers to create connection strings with a unique database name
- Helpers for creating unique SQL Server databases for unit testing
- Helpers for creating an empty database, and deleting SQL unit test databases
- Various tools for getting test data, or file paths to test data
- A tool for applying a SQL script file to a EF Core database
- Tools for capturing EF Core logging.
- EfSchemaCompare: Tool to compare EF Core's view of the database with an actual database.
This GitHub repository contains the source of the The NuGet package
EfCore.TestSupport
is the project TestSupport
and various unit tests that check the project TestSupport
.
- Testing against a PostgreSQL db
- Changes in EfCore.TestSupport 5
- Testing with production data
- Using an in-memory database (old)