From bf1ad07a9cf0376e0717097cf7d60701bb686a56 Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Wed, 6 Apr 2022 21:17:47 +0000 Subject: [PATCH] Use coverlet collector --- .github/workflows/CI.yml | 4 ++-- .../DiscordChatExporter.Cli.Tests.csproj | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ea85da7c..c7d1ef4e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,7 +19,7 @@ jobs: - name: Build & test # Tests need access to secrets, so we can't run them against PRs because of limited trust if: ${{ github.event_name != 'pull_request' }} - run: dotnet test --configuration Release --logger GitHubActions + run: dotnet test --configuration Release --logger GitHubActions --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover env: DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} DISCORD_TOKEN_BOT: true @@ -45,4 +45,4 @@ jobs: uses: actions/upload-artifact@v1 with: name: DiscordChatExporter - path: DiscordChatExporter.Gui/bin/Publish/ \ No newline at end of file + path: DiscordChatExporter.Gui/bin/Publish/ diff --git a/DiscordChatExporter.Cli.Tests/DiscordChatExporter.Cli.Tests.csproj b/DiscordChatExporter.Cli.Tests/DiscordChatExporter.Cli.Tests.csproj index 270b9664..ba1017d2 100644 --- a/DiscordChatExporter.Cli.Tests/DiscordChatExporter.Cli.Tests.csproj +++ b/DiscordChatExporter.Cli.Tests/DiscordChatExporter.Cli.Tests.csproj @@ -1,28 +1,26 @@ - + false true - true - opencover $(NoWarn);xUnit1013 - + - + - +