EfCore.TestSupport
3.0.0
See the version list below for details.
dotnet add package EfCore.TestSupport --version 3.0.0
NuGet\Install-Package EfCore.TestSupport -Version 3.0.0
<PackageReference Include="EfCore.TestSupport" Version="3.0.0" />
paket add EfCore.TestSupport --version 3.0.0
#r "nuget: EfCore.TestSupport, 3.0.0"
// Install EfCore.TestSupport as a Cake Addin #addin nuget:?package=EfCore.TestSupport&version=3.0.0 // Install EfCore.TestSupport as a Cake Tool #tool nuget:?package=EfCore.TestSupport&version=3.0.0
EfCore.TestSupport
This git repo contains the source of the EfCore.TestSupport, and various tests to check the EfCore.TestSupport NuGet package. See Release Notes for information on changes.
This project is open-source (MIT licence).
Documentation
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 readme defines the various groups, with links to the documentation in the EfCore.TestSupport wiki.
NOTE: The techniques are explained in much more details in chapter 15 of the book Entity Framework in Action.
The various groups of tools are:
- Helpers to create an in-memory Sqlite database for unit testing.
See Sqlite in memory test database. - Helpers to create an InMemory database for unit testing.
See EF InMemory test database. - Helpers to create connection strings with a unique database name.
See Creating connection strings. - Helpers for creating unique SQL Server databases for unit testing.
See Create SQL Server databases. - Helpers for creating an empty database, and deleting SQL unit test databases.
See Quickly create empty databases. - Various tools for getting test data, or file paths to test data.
See Test Data tools. - A tool for applying a SQL script file to a EF Core database.
See Run SQL Script. - Tools for capturing EF Core logging.
See Capture EF Core logging. - Tool to compare EF Core's view of the database with an actual database.
See EfSchemaCompare. - Capture cleaned production data to supply better data for unit tests.
See Seed from Production feature.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.EntityFrameworkCore.Design (>= 2.1.0)
- Microsoft.EntityFrameworkCore.InMemory (>= 2.1.0)
- Microsoft.EntityFrameworkCore.Sqlite (>= 2.1.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 2.1.0)
- Microsoft.Extensions.Configuration (>= 2.1.0)
- Microsoft.Extensions.Configuration.Json (>= 2.1.0)
- Newtonsoft.Json (>= 12.0.2)
- System.Data.SqlClient (>= 4.5.0)
- xunit.assert (>= 2.3.1)
- xunit.core (>= 2.3.1)
-
.NETStandard 2.1
- Microsoft.Data.SqlClient (>= 1.0.19269.1)
- Microsoft.EntityFrameworkCore.Design (>= 3.0.0)
- Microsoft.EntityFrameworkCore.InMemory (>= 3.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 3.0.0)
- Microsoft.EntityFrameworkCore.Sqlite (>= 3.0.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 3.0.0)
- Microsoft.Extensions.Configuration (>= 3.0.0)
- Microsoft.Extensions.Configuration.Json (>= 3.0.0)
- Newtonsoft.Json (>= 12.0.2)
- xunit.assert (>= 2.4.1)
- xunit.core (>= 2.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (8)
Showing the top 5 popular GitHub repositories that depend on EfCore.TestSupport:
Repository | Stars |
---|---|
JonPSmith/AuthPermissions.AspNetCore
This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
|
|
JonPSmith/EfCore.GenericServices
A library to help you quickly code CRUD accesses for a web/mobile/desktop application using EF Core.
|
|
JonPSmith/EfCoreinAction-SecondEdition
Supporting repo to go with book "Entity Framework Core in Action", second edition
|
|
JonPSmith/PermissionAccessControl2
Version 2 of example application to go with articles on feature and data authorization
|
|
JonPSmith/PermissionAccessControl
Example code for Authorization articles
|
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 144 | 11/20/2024 |
8.0.1 | 115,259 | 4/10/2024 |
8.0.0 | 1,280 | 4/4/2024 |
6.0.2 | 40,366 | 2/7/2024 |
6.0.1 | 14,708 | 1/23/2024 |
6.0.0 | 53,433 | 11/21/2023 |
5.3.0 | 221,948 | 11/14/2022 |
5.2.2 | 359,286 | 1/4/2022 |
5.2.1 | 23,078 | 11/19/2021 |
5.2.0 | 1,226 | 11/16/2021 |
5.1.0 | 11,906 | 11/10/2021 |
5.1.0-preview001 | 212 | 11/4/2021 |
5.0.0 | 212,670 | 1/2/2021 |
5.0.0-preview006 | 1,001 | 12/11/2020 |
5.0.0-preview005 | 770 | 12/10/2020 |
5.0.0-preview004 | 873 | 12/10/2020 |
5.0.0-preview003 | 835 | 12/5/2020 |
5.0.0-preview002 | 877 | 12/5/2020 |
5.0.0-preview001 | 849 | 12/5/2020 |
3.2.0 | 177,548 | 5/23/2020 |
3.1.1 | 31,660 | 3/26/2020 |
3.1.0 | 60,234 | 11/1/2019 |
3.0.0 | 8,788 | 10/12/2019 |
2.0.1 | 49,999 | 7/22/2019 |
2.0.0 | 31,418 | 6/4/2019 |
1.9.0 | 152,572 | 4/22/2019 |
1.8.0 | 5,197 | 3/25/2019 |
1.7.0 | 2,706 | 3/19/2019 |
1.6.1 | 11,799 | 1/28/2019 |
1.6.0 | 1,519 | 1/28/2019 |
1.5.2 | 17,467 | 1/4/2019 |
1.5.1 | 46,492 | 10/24/2018 |
1.5.0 | 4,208 | 10/2/2018 |
1.4.0 | 14,507 | 6/7/2018 |
1.3.1 | 8,400 | 4/1/2018 |
1.3.0 | 2,695 | 3/1/2018 |
1.2.0 | 2,115 | 1/22/2018 |
1.1.5 | 1,957 | 12/27/2017 |
1.1.4 | 1,786 | 12/27/2017 |
1.1.3 | 2,000 | 12/1/2017 |
1.1.2 | 1,671 | 11/21/2017 |
1.1.1 | 1,688 | 11/17/2017 |
1.1.0 | 1,673 | 11/16/2017 |
1.0.2 | 1,645 | 10/13/2017 |
1.0.1 | 1,695 | 9/30/2017 |
1.0.0 | 2,065 | 9/29/2017 |
- Support both EF Core 2.1+ and EF Core 3.0+ by supporting NetStandard2.0 and NetStandard2.1.
- Bug fix: GetAllErrors() in CompareEfSql should use Environment.NewLine. See issue #20.
- Obsolete: Remove LogSetupHelper as obsolete, use `CreateOptionsWithLogging` for Sqlite and SQL Server.