Skip to content

Commit 61c8b03

Browse files
committed
fix for .NET 10 testing
1 parent 79e162c commit 61c8b03

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/actions/testing/test/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ inputs:
1313
description: 'Build configuration. Default: Release'
1414
required: false
1515
default: 'Release'
16+
use-testing-platform:
17+
description: 'Use Microsoft Testing Platform, Default: true'
18+
required: false
19+
default: 'true'
1620
project-path:
1721
description: 'Search pattern for test projects.'
1822
required: true
@@ -82,10 +86,11 @@ runs:
8286
- name: 'Test with .NET CLI'
8387
shell: bash
8488
run: dotnet test ${{ inputs.test-project-glob-pattern }} --configuration ${{ inputs.build-configuration }} -- ${{ env.CODE_COVERAGE_ARGS }} ${{ env.TRX_LOGGER_ARGS }} --results-directory ${{ inputs.test-results-directory }}
85-
89+
env:
90+
DOTNET_TEST_USE_MICROSOFT_TESTING_PLATFORM: true
8691
- name: 'Upload test results'
8792
if: ${{ inputs.upload-test-artifacts == 'true' }}
8893
uses: actions/upload-artifact@v7
8994
with:
9095
name: '${{ inputs.test-artifacts-name }}'
91-
path: '${{ inputs.test-results-directory }}*'
96+
path: '${{ inputs.test-results-directory }}*'

tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
1313
<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput>
1414
<TestingExtensionsProfile>None</TestingExtensionsProfile>
15+
<UseMicrosoftTestingPlatform>true</UseMicrosoftTestingPlatform>
1516
</PropertyGroup>
1617

1718
<PropertyGroup>

0 commit comments

Comments
 (0)