Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Try all coverage in the cobertura format
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Dec 23, 2023
1 parent 75faaba commit 9048dac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -67,6 +67,8 @@ jobs:
with:
directory: ./test
fail_ci_if_error: true
verbose: true


- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion test/Squirrel.Packaging.Tests/WindowsPackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ private string RunProcess(string exe, string[] args, string workingDir, ILogger
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);

Expand Down

0 comments on commit 9048dac

Please sign in to comment.