- Use Visual Studio 2022 - Use an Azure Pipelines image which has Visual Studio 2022 installed - Use the v143 C++ build tools - Use the Windows SDK version 22000 - Raise the minimum platform version to 17763 - As a consequence of this change, we will use the "msix" file extension instead of "appx" for our packages - Update UI tests from .NET Core 2.1 to .NET Core 3.1
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
# This template contains jobs to run unit tests.
|
|
|
|
parameters:
|
|
platform: ''
|
|
runsettingsFileName: ''
|
|
|
|
jobs:
|
|
- job: UnitTests${{ parameters.platform }}
|
|
displayName: UnitTests ${{ parameters.platform }}
|
|
dependsOn: Build${{ parameters.platform }}
|
|
condition: succeeded()
|
|
pool:
|
|
vmImage: windows-2022
|
|
variables:
|
|
skipComponentGovernanceDetection: true
|
|
steps:
|
|
- checkout: none
|
|
|
|
- task: DownloadBuildArtifacts@0
|
|
displayName: Download CalculatorUnitTests
|
|
inputs:
|
|
artifactName: drop
|
|
itemPattern: drop/Release/${{ parameters.platform }}/CalculatorUnitTests/AppPackages/CalculatorUnitTests_Test/**
|
|
|
|
- task: PowerShell@2
|
|
displayName: Install Certificate
|
|
inputs:
|
|
filePath: $(Build.ArtifactStagingDirectory)\drop\Release\${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test\Add-AppDevPackage.ps1
|
|
arguments: -CertificatePath $(Build.ArtifactStagingDirectory)\drop\Release\${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test\CalculatorUnitTests.cer -Force
|
|
|
|
- task: VSTest@2
|
|
displayName: Run CalculatorUnitTests
|
|
inputs:
|
|
testAssemblyVer2: $(Build.ArtifactStagingDirectory)\drop\Release\${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test\CalculatorUnitTests.msix
|
|
otherConsoleOptions: /Platform:${{ parameters.platform }} |