Skip to content

Commit

Permalink
Disable integraiton test
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed Jan 24, 2021
1 parent 4bcf46c commit 88742e8
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,31 +164,34 @@ stages:
script: 'winrm quickconfig -quiet'
pwsh: false

- powershell: |
./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterScript @(
'tests/Integration/'
)
name: test
displayName: 'Run Integration Tests'
env:
azureDevOpsIntegrationApiUri: $(AzureDevOps.Integration.ApiUri)
azureDevOpsIntegrationPat: $(AzureDevOps.Integration.Pat)
# TODO: Current disabled due to integration tests throws the exception:
# "Cannot validate argument on parameter 'Pat'. The " Test-AzDevOpsPat -Pat $_ -IsValid " validation script for the argument with value "$(AzureDevOps.Integration.Pat)" did not return a result of True. Determine why the validation script failed, and then try the command again."

- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: succeededOrFailed()
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: 'output/testResults/NUnit*.xml'
testRunTitle: 'Windows Server Core (PowerShell Core) - Integration'
# - powershell: |
# ./build.ps1 -Tasks test -CodeCoverageThreshold 0 -PesterScript @(
# 'tests/Integration/'
# )
# name: test
# displayName: 'Run Integration Tests'
# env:
# azureDevOpsIntegrationApiUri: $(AzureDevOps.Integration.ApiUri)
# azureDevOpsIntegrationPat: $(AzureDevOps.Integration.Pat)

- task: PublishCodeCoverageResults@1
displayName: 'Publish Code Coverage'
condition: succeededOrFailed()
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: 'output/testResults/CodeCov*.xml'
pathToSources: '$(Build.SourcesDirectory)/output/$(dscBuildVariable.RepositoryName)'
# - task: PublishTestResults@2
# displayName: 'Publish Test Results'
# condition: succeededOrFailed()
# inputs:
# testResultsFormat: 'NUnit'
# testResultsFiles: 'output/testResults/NUnit*.xml'
# testRunTitle: 'Windows Server Core (PowerShell Core) - Integration'

# - task: PublishCodeCoverageResults@1
# displayName: 'Publish Code Coverage'
# condition: succeededOrFailed()
# inputs:
# codeCoverageTool: 'JaCoCo'
# summaryFileLocation: 'output/testResults/CodeCov*.xml'
# pathToSources: '$(Build.SourcesDirectory)/output/$(dscBuildVariable.RepositoryName)'

- job: test_unit_windows_ps
condition: succeededOrFailed()
Expand Down

0 comments on commit 88742e8

Please sign in to comment.