diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6f1cb5b..d0a60b8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -188,8 +188,10 @@ jobs: --no-build --configuration Release --property:Version=${{ inputs.version }} - --collect "XPlat Code Coverage;Format=opencover" - --logger "trx;LogFilePrefix=${{ matrix.os }}" + --coverlet + --coverlet-output-format opencover + --report-trx + --report-trx-filename "${{ matrix.os }}_{asm}_{tfm}_{arch}.trx" --results-directory artifacts - name: End Sonar Scanner diff --git a/global.json b/global.json new file mode 100644 index 0000000..3140116 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "test": { + "runner": "Microsoft.Testing.Platform" + } +} diff --git a/src/DemaConsulting.FileAssert/DemaConsulting.FileAssert.csproj b/src/DemaConsulting.FileAssert/DemaConsulting.FileAssert.csproj index 08156f3..57af7db 100644 --- a/src/DemaConsulting.FileAssert/DemaConsulting.FileAssert.csproj +++ b/src/DemaConsulting.FileAssert/DemaConsulting.FileAssert.csproj @@ -52,14 +52,14 @@ - + - - + + @@ -69,11 +69,11 @@ in packages that consume this tool. - IncludeAssets lists all asset types (including 'analyzers' and 'buildtransitive') to ensure Roslyn analyzers and MSBuild targets are fully activated during the build. --> - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/DemaConsulting.FileAssert.Tests/DemaConsulting.FileAssert.Tests.csproj b/test/DemaConsulting.FileAssert.Tests/DemaConsulting.FileAssert.Tests.csproj index 45b952b..9a4c90c 100644 --- a/test/DemaConsulting.FileAssert.Tests/DemaConsulting.FileAssert.Tests.csproj +++ b/test/DemaConsulting.FileAssert.Tests/DemaConsulting.FileAssert.Tests.csproj @@ -27,18 +27,21 @@ - - + extension's MSBuild targets are activated so coverage is collected during test runs. --> + all - runtime; build; native; contentfiles; analyzers; buildtransitive + compile; runtime; build; native; contentfiles; analyzers; buildtransitive - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -51,11 +54,11 @@ in any project that references this test project. - IncludeAssets lists all asset types (including 'analyzers' and 'buildtransitive') to ensure Roslyn analyzers and MSBuild targets are fully activated during the build. --> - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive