Skip to content

TheMagnificent11/coverlet-experiment

Repository files navigation

Coverlet Experiment

Purpose

I am using Coverlet on an open source project (Lewee) and getting 0% coverage for integration tests run using Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<T>.

I've created this repository as a more minimal replication of the issue.

My hypothesis is that problem may occur when you use an implementation of Xunit.ICollectionFixture<T> to "reset" a database before each test.

Running the experiment

Running this experiment requires PowerShell.

Install Report Generator

dotnet tool install -g dotnet-reportgenerator-globaltool

Run Tests & Build Report

.\test-coverage.ps1

View Report

.\coverage-report\index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published