Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITest not generating code coverage #1370

Open
ArkaHnat opened this issue Apr 16, 2024 · 0 comments
Open

ITest not generating code coverage #1370

ArkaHnat opened this issue Apr 16, 2024 · 0 comments
Labels

Comments

@ArkaHnat
Copy link

ArkaHnat commented Apr 16, 2024

Usage Information

Nuke 8.0.0, dotnet 6

Description

While I run target IReportCoverage.ReportCoverage or when I run target ITest.Test with IsServerBuild == true the coverage report is not being generated. Trx files are being created correctly.

Reproduction Steps

Run Test target with IsServerBuild or ReportCoverage target.

Expected Behavior

CoverageReports should be generated together with test reports

Actual Behavior

ReportFiles are not being generated. It seems that dotnet command is missing parameters
Command executed:
"C:\Program Files\dotnet\dotnet.exe" test XXX.Tests.csproj --configuration Debug --logger trx;LogFileName=XXX.Tests.trx --no-build --results-directory XXX\artifacts\Debug\Unknown\test-results

I would guess that I need also
--collect:"XPlat Code Coverage

Regression?

No response

Known Workarounds

No response

Could you help with a pull-request?

No

@ArkaHnat ArkaHnat added the bug label Apr 16, 2024
@ArkaHnat ArkaHnat changed the title ITest not generating ITest not generating code coverage Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant