File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
HydraScript.IntegrationTests Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,16 @@ jobs:
5252 - name : Build
5353 run : dotnet build /p:Version=${{ steps.version_step.outputs.fullSemVer }} --no-restore -c Debug -v n
5454 - name : Unit Tests
55- run : dotnet test -c Debug --no-build -v n --filter=" Category=Unit"
55+ run : dotnet test -c Debug --no-build -v n -- -- filter-trait Category=Unit --ignore-exit-code 8
5656 - name : Integration Tests
5757 run : |
58- dotnet test -c Debug /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --no-build -v n --filter="Category=Integration"
58+ dotnet test tests/HydraScript.IntegrationTests -c Debug --no-build -v n -- --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml
5959 mkdir coverage-report
6060 - name : Code Coverage Summary Report For Merge Request
6161 if : github.event_name == 'pull_request'
6262 uses : 5monkeys/cobertura-action@master
6363 with :
64- path : ./tests/HydraScript.IntegrationTests/coverage.cobertura.xml
64+ path : ./tests/HydraScript.IntegrationTests/bin/Debug/net9.0/TestResults/ coverage.cobertura.xml
6565 repo_token : ${{ secrets.GITHUB_TOKEN }}
6666 minimum_coverage : 80
6767 fail_below_threshold : true
7373 - name : ReportGenerator
7474 uses :
danielpalme/[email protected] 7575 with :
76- reports : ' ./tests/HydraScript.IntegrationTests/coverage.cobertura.xml'
76+ reports : ' ./tests/HydraScript.IntegrationTests/bin/Debug/net9.0/TestResults/ coverage.cobertura.xml'
7777 targetdir : ' ./coverage-report'
7878 - name : Upload coverage report artifact
7979 if : github.event_name == 'push'
Original file line number Diff line number Diff line change 88 <PackageVersion Include =" MartinCostello.Logging.XUnit.v3" Version =" 0.6.0" />
99 <PackageVersion Include =" Microsoft.CodeAnalysis.CSharp.Workspaces" Version =" 4.13.0" />
1010 <PackageVersion Include =" Microsoft.Extensions.Diagnostics.Testing" Version =" 9.4.0" />
11+ <PackageVersion Include =" Microsoft.Testing.Extensions.CodeCoverage" Version =" 17.14.2" />
1112 <PackageVersion Include =" NSubstitute" Version =" 5.3.0" />
1213 <PackageVersion Include =" PolymorphicContracts.AutoFixture" Version =" 2.0.0" />
1314 <PackageVersion Include =" System.Text.RegularExpressions" Version =" 4.3.1" />
Original file line number Diff line number Diff line change 88 <PackageReference Include =" AwesomeAssertions" />
99 <PackageReference Include =" MartinCostello.Logging.XUnit.v3" />
1010 <PackageReference Include =" Microsoft.Extensions.Diagnostics.Testing" />
11+ <PackageReference Include =" Microsoft.Testing.Extensions.CodeCoverage" />
1112 </ItemGroup >
1213
1314 <ItemGroup >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments