Try all coverage in the cobertura format

This commit is contained in:
Caelan Sayler
2023-12-23 22:39:55 +00:00
parent 75faaba90e
commit 9048dac365
3 changed files with 5 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ jobs:
- name: Test Rust
working-directory: src/Rust
run: cargo llvm-cov --codecov --output-path ../../test/coverage.rust.json
run: cargo llvm-cov --cobertura --output-path ../../test/coverage.rust.xml
- name: Build .NET
run: dotnet build -c Release
@@ -67,6 +67,8 @@ jobs:
with:
directory: ./test
fail_ci_if_error: true
verbose: true
- name: Upload Artifacts
uses: actions/upload-artifact@v3

View File

@@ -11,7 +11,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<!-- Coverage -->
<CoverletOutputFormat>opencover</CoverletOutputFormat>
<CoverletOutputFormat>cobertura</CoverletOutputFormat>
<CoverletOutput>..\coverage.$(MSBuildProjectName).xml</CoverletOutput>
<Include>[Squirrel*]*</Include>
<Exclude>[Squirrel.*.Tests]*</Exclude>

View File

@@ -358,7 +358,7 @@ public class WindowsPackTests
psi.ArgumentList.Add("-o");
psi.ArgumentList.Add(outputfile);
psi.ArgumentList.Add("-f");
psi.ArgumentList.Add("xml");
psi.ArgumentList.Add("cobertura");
psi.ArgumentList.Add(exe);
psi.ArgumentList.AddRange(args);