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
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ parameters:
condition: succeeded() # Condition to run tests

steps:
# The tool apphost does not locate its runtime from PATH, so use the SDK installed during test setup.
- ${{if parameters.testFilter}}:
- pwsh: >-
$(Agent.ToolsDirectory)/dotnet-test-slicer slice
Expand All @@ -18,6 +19,8 @@ steps:
displayName: Slice unit tests with filter
failOnStderr: true
condition: ${{ parameters.condition }}
env:
DOTNET_ROOT: ${{ parameters.xaSourcePath }}/bin/$(XA.Build.Configuration)/dotnet
Comment thread
simonrozsival marked this conversation as resolved.
Resolved
- ${{ else }}:
- pwsh: >-
$(Agent.ToolsDirectory)/dotnet-test-slicer slice
Expand All @@ -28,6 +31,8 @@ steps:
displayName: Slice unit tests
failOnStderr: true
condition: ${{ parameters.condition }}
env:
DOTNET_ROOT: ${{ parameters.xaSourcePath }}/bin/$(XA.Build.Configuration)/dotnet

- ${{ if eq(parameters.retryFailedTests, 'false') }}:
# If we aren't using auto-retry logic, then this is just a simple template call
Expand Down Expand Up @@ -63,6 +68,8 @@ steps:
displayName: Look for failed tests
workingDirectory: ${{ parameters.xaSourcePath }}
condition: ${{ parameters.condition }}
env:
DOTNET_ROOT: ${{ parameters.xaSourcePath }}/bin/$(XA.Build.Configuration)/dotnet

# dotnet-test-slicer removed the failed tests from our results file, so it's safe to publish it now
- task: PublishTestResults@2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ stages:
testAssembly: ${{ parameters.xaSourcePath }}/bin/Test$(XA.Build.Configuration)/MSBuildDeviceIntegration/$(DotNetStableTargetFramework)/MSBuildDeviceIntegration.dll
testFilter: $(ExcludedNightlyNUnitCategories)
testRunTitle: MSBuildDeviceIntegration On Device - macOS
xaSourcePath: ${{ parameters.xaSourcePath }}

- ${{ if ne(parameters.usesCleanImages, true) }}:
- template: start-stop-emulator.yaml
Expand Down
Loading