Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.47 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.47 KB

Integration tests in ASP.NET Core with 3.0

This repo contains a super simple web API which is using the entity framework core and an SQLite database. The reason for this repo is to show the problem with the integration test on the latest .NET Core 3.0. The Application is using the SQLite DB provider and the integration test should use the InMemory DB provider from EF Core. The integration test is following Microsoft documentation "Integration tests in ASP.NET Core" which shows the approach of how to use a customize the WebApplicationFactory.

Branches

This repo includes two branches. The core-2.2 branches contain a working version base on the .NET Core 2.2. The master branch contains an updated version to .NET Core 3.0. In which the integration test won't pass.

  • master: ASP.NET Core 3.0 (not working)
  • core-2.2: ASP.NET Core 2.2 (working)
  • daily-builds: ASP.NET Core 3.0.100-rc2-014216 (not working)

Application

If you start the application the endpoint /artists will return a list of artists. Please see blow.

[
  {
    "artistId": 1,
    "name": "AC/DC"
  },
  {
    "artistId": 2,
    "name": "Accept"
  }
.
.
.
]

Integration Test

Tests the endpoint /artists