mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
Changed to opencover test format
This commit is contained in:
10
.github/workflows/build-pipeline.yml
vendored
10
.github/workflows/build-pipeline.yml
vendored
@@ -40,15 +40,7 @@ jobs:
|
|||||||
- name: 'Run tests'
|
- name: 'Run tests'
|
||||||
run: |
|
run: |
|
||||||
cd '${{ github.workspace }}/MewtocolTests'
|
cd '${{ github.workspace }}/MewtocolTests'
|
||||||
dotnet test --logger "trx;logfilename=testresults.trx"
|
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
|
||||||
#Generate a test report
|
|
||||||
- name: 'Generate Test Report'
|
|
||||||
uses: dorny/test-reporter@v1
|
|
||||||
if: success() || failure() # run this step even if previous step failed
|
|
||||||
with:
|
|
||||||
name: Unit Test Report # Name of the check run which will be created
|
|
||||||
path: '${{ github.workspace }}/MewtocolTests/TestResults/testresults.trx' # Path to test results
|
|
||||||
reporter: dotnet-trx # Format of test results
|
|
||||||
#Upload to codecov
|
#Upload to codecov
|
||||||
- name: Upload coverage reports to Codecov
|
- name: Upload coverage reports to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|||||||
@@ -9,6 +9,10 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
|
||||||
<PackageReference Include="xunit" Version="2.4.2" />
|
<PackageReference Include="xunit" Version="2.4.2" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
|
||||||
|
|||||||
Reference in New Issue
Block a user