Skip to content

Commit 9457794

Browse files
committed
chores: update dotnet test command
1 parent f39cb10 commit 9457794

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CodeCoverageReport.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ foreach ($file in $coberturaFiles) {
1919

2020
# 2. Run tests
2121
Write-Host "Running unit tests..."
22-
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
22+
# OLD way
23+
# dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
24+
# new way
25+
dotnet test --collect:"XPlat Code Coverage"
2326

2427
# 3 Generate reports
2528
Write-Host "Generating reports..."

0 commit comments

Comments
 (0)