Skip to content
Merged
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 @@ -157,58 +157,4 @@ stages:
parameters:
condition: ${{ parameters.shouldFailOnIssue }}

- job: debug_windows_tests
displayName: Windows > Tests > Debugging
timeoutInMinutes: 180
pool:
name: Android-1ESPT
image: $(WindowsPoolImage1ESPT)
os: windows
workspace:
clean: all
steps:
- template: /build-tools/automation/yaml-templates/setup-test-environment.yaml
parameters:
installTestSlicer: true
installApkDiff: false
xaSourcePath: ${{ parameters.xaSourcePath }}
repositoryAlias: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.commit }}
xaprepareScenario: EmulatorTestDependencies
use1ESTemplate: ${{ parameters.use1ESTemplate }}

- task: DownloadPipelineArtifact@2
inputs:
artifactName: $(TestAssembliesArtifactName)
downloadPath: ${{ parameters.xaSourcePath }}/bin/Test$(XA.Build.Configuration)

- template: /build-tools/automation/yaml-templates/start-stop-emulator.yaml
parameters:
xaSourcePath: ${{ parameters.xaSourcePath }}
startContinueOnError: true

- template: /build-tools/automation/yaml-templates/run-sliced-nunit-tests.yaml
parameters:
testAssembly: $(System.DefaultWorkingDirectory)\bin\Test$(XA.Build.Configuration)\MSBuildDeviceIntegration\$(DotNetStableTargetFramework)\MSBuildDeviceIntegration.dll
testFilter: name == DebuggingTest
testRunTitle: DebuggingTest tests on Windows
condition: and(succeeded(), eq(variables['EMULATOR_STARTED'], 'true'))

- ${{ if ne(parameters.usesCleanImages, true) }}:
- template: /build-tools/automation/yaml-templates/start-stop-emulator.yaml
parameters:
command: stop
xaSourcePath: ${{ parameters.xaSourcePath }}

- template: /build-tools/automation/yaml-templates/upload-results.yaml
parameters:
configuration: $(XA.Build.Configuration)
artifactName: Test Results - Emulator Debugging - Windows-$(System.JobPositionInPhase)
xaSourcePath: ${{ parameters.xaSourcePath }}
use1ESTemplate: ${{ parameters.use1ESTemplate }}

# Only fail on issues if the emulator started successfully
# If the emulator failed to start on Windows, we skip tests and don't fail the job
- template: /build-tools/automation/yaml-templates/fail-on-issue.yaml
parameters:
condition: and(${{ parameters.shouldFailOnIssue }}, eq(variables['EMULATOR_STARTED'], 'true'))