File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "version" : 1 ,
33 "isRoot" : true ,
44 "tools" : {
5- "jetbrains.dotcover.globaltool " : {
6- "version" : " 2022.2.3 " ,
5+ "jetbrains.dotcover.commandlinetools " : {
6+ "version" : " 2025.1.8 " ,
77 "commands" : [
8- " dotnet-dotcover"
9- ]
8+ " dotCover"
9+ ],
10+ "rollForward" : false
1011 },
1112 "timeitsharp" : {
1213 "version" : " 0.0.8" ,
1516 ]
1617 }
1718 }
18- }
19+ }
Original file line number Diff line number Diff line change @@ -62,15 +62,22 @@ jobs:
6262 foreach ($testProject in $testProjects) {
6363 $projectName = [IO.Path]::GetFileNameWithoutExtension($testProject)
6464
65- dotnet dotcover test $testProject `
66- --configuration Release `
67- --framework net48 `
68- --logger trx `
69- --results-directory Artifacts/TestResults `
70- -p:ContinuousIntegrationBuild=true `
71- --dotCoverFilters="+:module=UnitsNet*;-:module=*Tests" `
72- --dotCoverOutput="Artifacts/Coverage/$projectName.coverage.xml" `
73- --dcReportType=DetailedXML
65+ $testArguments = @(
66+ $testProject,
67+ '--configuration', 'Release',
68+ '--framework', 'net48',
69+ '--logger', 'trx',
70+ '--results-directory', 'Artifacts/TestResults',
71+ '-p:ContinuousIntegrationBuild=true'
72+ )
73+
74+ dotnet tool run dotCover -- cover-dotnet `
75+ --TargetWorkingDir $PWD.Path `
76+ --Output "Artifacts/Coverage/$projectName.coverage.xml" `
77+ --ReportType DetailedXML `
78+ --Filters '+:module=UnitsNet*;-:module=*Tests' `
79+ --ReturnTargetExitCode `
80+ -- test @testArguments
7481
7582 if ($LASTEXITCODE -ne 0) {
7683 exit $LASTEXITCODE
You can’t perform that action at this time.
0 commit comments