* Run feature suites on demand

* include main for PR trigger
This commit is contained in:
Ashish Kumar Singh 2023-02-16 13:55:14 +05:30 коммит произвёл GitHub
Родитель ad8acff39f
Коммит a4f2eb67ef
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 57 добавлений и 5 удалений

Просмотреть файл

@ -45,6 +45,7 @@ trigger:
- internal/release/6.* - internal/release/6.*
- experimental/* - experimental/*
- ctp - ctp
- feature/*
paths: paths:
exclude: exclude:
- Documentation/* - Documentation/*
@ -53,8 +54,7 @@ pr:
autoCancel: true autoCancel: true
branches: branches:
include: include:
- drttesting - main
- ctp
paths: paths:
exclude: exclude:
- Documentation/* - Documentation/*

Просмотреть файл

@ -236,15 +236,67 @@ jobs:
targetType: 'inline' targetType: 'inline'
script: '.\RunDrts.cmd' script: '.\RunDrts.cmd'
workingDirectory: '$(System.ArtifactsDirectory)\testbins' workingDirectory: '$(System.ArtifactsDirectory)\testbins'
condition: ne(variables['_Platform'], 'arm64')
continueOnError: true continueOnError: true
- task: PowerShell@2 - task: PowerShell@2
displayName: Run Microsuites displayName: Run Microsuites
inputs: inputs:
targetType: 'inline' targetType: 'inline'
script: '.\RunTests.cmd /Keywords=Microsuite' script: '.\RunTests.cmd /Keywords=Microsuite'
workingDirectory: '$(System.ArtifactsDirectory)\testbins' workingDirectory: '$(System.ArtifactsDirectory)\testbins'
condition: ne(variables['_Platform'], 'arm64')
continueOnError: true continueOnError: true
- task: PowerShell@2
displayName: Run Feature Suites
inputs:
targetType: 'inline'
script: '.\RunTests.cmd /Area=$(areas)'
workingDirectory: '$(System.ArtifactsDirectory)\testbins'
continueOnError: true
condition: ne(variables['areas'], '')
- task: PowerShell@2
displayName: Run Full Suites
inputs:
targetType: 'inline'
script: '.\RunTests.cmd'
workingDirectory: '$(System.ArtifactsDirectory)\testbins'
continueOnError: true
condition: eq(variables['fulltest'], 'fulltest')
- task: CopyFiles@2
inputs:
SourceFolder: 'C:\Users\cloudtest\AppData\Roaming\QualityVault\Run\Report\'
Contents: '**'
TargetFolder: '$(System.DefaultWorkingDirectory)\Results\'
CleanTargetFolder: true
OverWrite: true
condition: eq(variables['_Platform'], 'x64')
- task: CopyFiles@2
inputs:
SourceFolder: 'C:\Users\cloudtest\AppData\Roaming\QualityVault\Run\Report\'
Contents: '**'
TargetFolder: '$(System.DefaultWorkingDirectory)\ResultsX86\'
CleanTargetFolder: true
OverWrite: true
condition: eq(variables['_Platform'], 'x86')
- task: PublishPipelineArtifact@1
inputs:
artifactName: 'TestResultsX64'
targetPath: '$(System.DefaultWorkingDirectory)\Results\'
condition: eq(variables['_Platform'], 'x64')
- task: PublishPipelineArtifact@1
inputs:
artifactName: 'TestResultsX86'
targetPath: '$(System.DefaultWorkingDirectory)\ResultsX86\'
condition: eq(variables['_Platform'], 'x86')
- task: PublishTestResults@2
inputs:
testResultsFormat: 'XUnit'
testResultsFiles: 'testResults.xml'
searchFolder: '$(System.DefaultWorkingDirectory)\Results\'
testRunTitle: 'CTP results'