File tree Expand file tree Collapse file tree
CommonNet.Extensions.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 shell : pwsh
6262 run : |
6363 $currentDirectory = Get-Location
64- dotnet run --no-restore --configuration Release --no-build --verbosity normal --framework net8.0 --coverage-output $currentDirectory/coverage/net8.0/coverage.opencover.xml --coverage-output-format cobertura --coverage -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
65- dotnet run --no-restore --configuration Release --no-build --verbosity normal --framework net10.0 --coverage-output $currentDirectory/coverage/net10.0/coverage.opencover.xml --coverage-output-format cobertura --coverage -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
64+ dotnet test --no-restore --configuration Release --no-build --verbosity normal --framework net8.0 --results-directory $currentDirectory/coverage/net8.0 /p:CollectCoverage=true /p:CoverletOutputFormat= cobertura -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
65+ dotnet test --no-restore --configuration Release --no-build --verbosity normal --framework net10.0 --results-directory $currentDirectory/coverage/net10.0 /p:CollectCoverage=true /p:CoverletOutputFormat= cobertura -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
6666 - name : SonarCloud End
6767 env :
6868 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9494 shell : pwsh
9595 run : |
9696 $currentDirectory = Get-Location
97- dotnet run --no-restore --configuration Release --no-build --verbosity normal --framework net48 --coverage-output $currentDirectory/coverage/net48/coverage.opencover.xml --coverage-output-format cobertura --coverage -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
98- dotnet run --no-restore --configuration Release --no-build --verbosity normal --framework net8.0 --coverage-output $currentDirectory/coverage/net8.0/coverage.opencover.xml --coverage-output-format cobertura --coverage -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
99- dotnet run --no-restore --configuration Release --no-build --verbosity normal --framework net10.0 --coverage-output $currentDirectory/coverage/net10.0/coverage.opencover.xml --coverage-output-format cobertura --coverage -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
97+ dotnet test --no-restore --configuration Release --no-build --verbosity normal --framework net48 --results-directory $currentDirectory/coverage/net48 /p:CollectCoverage=true /p:CoverletOutputFormat= cobertura -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
98+ dotnet test --no-restore --configuration Release --no-build --verbosity normal --framework net8.0 --results-directory $currentDirectory/coverage/net8.0 /p:CollectCoverage=true /p:CoverletOutputFormat= cobertura -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
99+ dotnet test --no-restore --configuration Release --no-build --verbosity normal --framework net10.0 --results-directory $currentDirectory/coverage/net10.0 /p:CollectCoverage=true /p:CoverletOutputFormat= cobertura -- project CommonNet.Extensions.Tests/CommonNet.Extensions.Tests.csproj
100100 - name : Upload coverage reports to Codecov
101101 uses : codecov/codecov-action@v5
102102 with :
Original file line number Diff line number Diff line change 1616 <PackageReference Include =" Microsoft.Extensions.DependencyInjection" />
1717 <PackageReference Include =" Microsoft.Testing.Extensions.CodeCoverage" />
1818 <PackageReference Include =" Microsoft.NET.Test.Sdk" />
19+ <PackageReference Include =" Microsoft.Testing.Platform" />
1920 <PackageReference Include =" Moq" />
2021 <PackageReference Include =" TUnit" />
2122 <PackageReference Include =" System.Threading.Tasks.Extensions" Condition =" '$(TargetFramework)' == 'net48'" />
Original file line number Diff line number Diff line change 11<Project >
22 <ItemGroup >
33 <PackageVersion Include =" CommunityToolkit.Diagnostics" Version =" [8.0,)" />
4+ <PackageVersion Include =" Microsoft.Testing.Platform" Version =" 2.1.0" />
45 <PackageVersion Include =" Serilog" Version =" [4.0,)" />
56 <PackageVersion Include =" Moq" Version =" 4.20.72" />
67 <PackageVersion Include =" Microsoft.NET.Test.Sdk" Version =" 18.3.0" />
Original file line number Diff line number Diff line change 1+ {
2+ "sdk" : {
3+ "version" : " 10.0.0" ,
4+ "rollForward" : " latestMajor"
5+ },
6+ "test" : {
7+ "runner" : " Microsoft.Testing.Platform"
8+ }
9+ }
You can’t perform that action at this time.
0 commit comments