#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
SpecFlow Section in app.config or content of specflow.json
N/A
Issue Description
I am trying to generate a code coverage report, I am interested to find out what % of lines are covered in each one of my projects within this solution. I have tried using the built in code coverage with Xunit, along with coverlet nuget package and I cannot get reports to generate with any data in them. They generate but are empty. Is there a recommended approach for accomplishing this?
Steps to Reproduce
Run this command to execute the specflow tests, coverage should be generated but is not accurate.
dotnet test --filter "FullyQualifiedName~IntTests" -p:CollectCoverage=true -p:CoverletOutputFormat=\"json,opencover\" -p:MergeWith="pwd/coverage.json" --logger "trx;LogFileName=TestResults.trx"
SpecFlow Version
3.9.74"
Which test runner are you using?
xUnit
Test Runner Version Number
.NET Implementation
.NET 6.0
Project Format of the SpecFlow project
Sdk-style project format
.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation NuGet package
Test Execution Method
Visual Studio Test Explorer
SpecFlow Section in app.config or content of specflow.json
N/A
Issue Description
I am trying to generate a code coverage report, I am interested to find out what % of lines are covered in each one of my projects within this solution. I have tried using the built in code coverage with Xunit, along with coverlet nuget package and I cannot get reports to generate with any data in them. They generate but are empty. Is there a recommended approach for accomplishing this?
Steps to Reproduce
dotnet test --filter "FullyQualifiedName~IntTests" -p:CollectCoverage=true -p:CoverletOutputFormat=\"json,opencover\" -p:MergeWith="
pwd/coverage.json" --logger "trx;LogFileName=TestResults.trx"
Link to Repro Project
No response