Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/CSharpTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ jobs:
dotnet add "Sources/Tests/UnitTests" package GitHubActionsTestLogger
dotnet build Sources/Tests/UnitTests

# No coverage on these two legs: the Windows leg's report is the one uploaded. With coverlet's
# MSBuild integration they printed `AngouriMath | 0%` on every run, because VSTest stops the
# test host before coverlet writes its hits (coverlet's KnownIssues.md), and instrumenting
# the suite took about two fifths of its time, measured locally.
# https://github.com/asc-community/AngouriMath/issues/397
- name: Test if not to send
if: ${{ matrix.os != 'windows-latest' }}
run: |
dotnet test "Sources/Tests/UnitTests" -c Release -l GitHubActions -l "trx;LogFileName=results.trx" --results-directory "Sources/Tests/UnitTests/TestResults" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
dotnet test "Sources/Tests/UnitTests" -c Release -l GitHubActions -l "trx;LogFileName=results.trx" --results-directory "Sources/Tests/UnitTests/TestResults"

# Where the suite's time goes, by the Area trait every test class carries, written to the
# job's summary. One leg is enough to see the breakdown, and running the tool builds the
Expand Down
2 changes: 1 addition & 1 deletion Sources/AngouriMath/Docs/Contributing/Coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ round to instrumenting.

| leg | workflow | what it runs | how coverage is collected | codecov flag |
|---|---|---|---|---|
| C# | `CSharpTest.yml` | `dotnet test Sources/Tests/UnitTests` | coverlet, both as `/p:CollectCoverage=true` and as the VSTest `XPlat Code Coverage` collector | `csharp` |
| C# | `CSharpTest.yml` | `dotnet test Sources/Tests/UnitTests`, collected on the Windows leg | coverlet, as the VSTest `XPlat Code Coverage` collector | `csharp` |
| F# | `FSharpTest.yml` | `dotnet test Sources/Tests/FSharpWrapperUnitTests` | VSTest `XPlat Code Coverage` collector | `fsharp` |
| Interactive | `InteractiveTest.yml` | `dotnet test` over the Interactive wrapper and the terminal | VSTest `XPlat Code Coverage` collector | `interactive` |
| C++ | `CPPTest.yml` | `ctest` over a native executable | `gcov`, reported by `gcovr` as Cobertura | `cpp` |
Expand Down
Loading