2 changed files
Build | ||
build.psake.ps1 | ||
azure-pipelines.yml | ||
Add comment 17 # Pester
Add comment 18 $TestRootDir = "$ProjectRoot\Tests"
Add comment 19 $TestScripts = Get-ChildItem "$ProjectRoot\Tests\*Tests.ps1"
Add comment 20 Minus $TestFile = "TestResults_PS$PSVersion`_$TimeStamp.xml"
Add comment 20 Plus $TestFile = "$($TimeStamp)_UnitTestResults.xml"
Add comment 21
Add comment 22 # Script Analyzer
Add comment 23 [ValidateSet('Error', 'Warning', 'Any', 'None')]
Add comment 6 pool:
Add comment 7 vmImage: 'vs2017-win2016'
Add comment 8
Add comment 9 Plus trigger:
Add comment 10 Plus batch: true
Add comment 11 Plus branches:
Add comment 12 Plus include:
Add comment 13 Plus - master
Add comment 14 Plus - develop
Add comment 15 Plus
Add comment 9 16 steps:
Add comment 10 Minus - script: echo Hello, world!
Add comment 11 Minus displayName: 'Run a one-line script'
Add comment 17 Plus - task: PowerShell@1
Add comment 18 Plus displayName: Run Unit Tests
Add comment 19 Plus inputs:
Add comment 20 Plus scriptType: filePath
Add comment 21 Plus scriptName: "Build/build.ps1"
Add comment 22 Plus arguments: -Task 'Test'
Add comment 12 23
Add comment 13 Minus - script: |
Add comment 14 Minus echo Add other tasks to build, test, and deploy your project.
Add comment 15 Minus echo See https://aka.ms/yaml
Add comment 16 Minus displayName: 'Run a multi-line script'
Add comment 24 Plus - task: PublishTestResults@2
Add comment 25 Plus inputs:
Add comment 26 Plus testRunner: 'NUnit'
Add comment 27 Plus testResultsFiles: '**UnitTestResults.xml'
Add comment 28 Plus testRunTitle: 'UnitTests'
Add comment 29 Plus condition: always()
Add comment 17 30