Fix Test Publishing
This commit is contained in:
@@ -49,7 +49,8 @@ task Analyze CheckPSScriptAnalyzerInstalled, CheckPesterInstalled, CheckPlatyPSI
|
|||||||
}
|
}
|
||||||
|
|
||||||
task FileTests CheckPesterInstalled, {
|
task FileTests CheckPesterInstalled, {
|
||||||
Invoke-Pester "$BuildRoot\Tests\Public\ZertoApiWrapper.Tests.ps1" -Show Fails
|
$testResultsFile = "$BuildRoot\Tests\Public\TestResults.xml"
|
||||||
|
Invoke-Pester -Script "$BuildRoot\Tests\Public\ZertoApiWrapper.Tests.ps1" -OutputFile $testResultsFile -PassThru
|
||||||
}
|
}
|
||||||
|
|
||||||
$buildMamlParams = @{
|
$buildMamlParams = @{
|
||||||
|
|||||||
+12
-12
@@ -14,15 +14,15 @@ jobs:
|
|||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: 'NUnit'
|
testRunner: 'NUnit'
|
||||||
testResultsFiles: '**/TestResults.xml'
|
testResultsFiles: '**/Public/TestResults.xml'
|
||||||
testRunTitle: 'PS_Win2016'
|
testRunTitle: 'PS_Win2016'
|
||||||
displayName: 'Publish Test Results'
|
displayName: 'Publish Test Results'
|
||||||
|
|
||||||
- job: Build_PSCore_Ubuntu1604
|
- job: Build_PSCore_Ubuntu1604
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-16.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
|
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
|
||||||
@@ -30,18 +30,18 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y powershell
|
sudo apt-get install -y powershell
|
||||||
displayName: 'Install PowerShell Core'
|
displayName: 'Install PowerShell Core'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
pwsh -c '.\build.ps1'
|
pwsh -c '.\build.ps1'
|
||||||
displayName: 'Build and Test'
|
displayName: 'Build and Test'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: 'NUnit'
|
testRunner: 'NUnit'
|
||||||
testResultsFiles: '**/TestResults.xml'
|
testResultsFiles: '**/Public/TestResults.xml'
|
||||||
testRunTitle: 'PSCore_Ubuntu1604'
|
testRunTitle: 'PSCore_Ubuntu1604'
|
||||||
displayName: 'Publish Test Results'
|
displayName: 'Publish Test Results'
|
||||||
|
|
||||||
- job: Build_PSCore_MacOS1013
|
- job: Build_PSCore_MacOS1013
|
||||||
pool:
|
pool:
|
||||||
vmImage: xcode9-macos10.13
|
vmImage: xcode9-macos10.13
|
||||||
@@ -51,14 +51,14 @@ jobs:
|
|||||||
brew tap caskroom/cask
|
brew tap caskroom/cask
|
||||||
brew cask install powershell
|
brew cask install powershell
|
||||||
displayName: 'Install PowerShell Core'
|
displayName: 'Install PowerShell Core'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
pwsh -c '.\build.ps1'
|
pwsh -c '.\build.ps1'
|
||||||
displayName: 'Build and Test'
|
displayName: 'Build and Test'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
inputs:
|
inputs:
|
||||||
testRunner: 'NUnit'
|
testRunner: 'NUnit'
|
||||||
testResultsFiles: '**/TestResults.xml'
|
testResultsFiles: '**/Public/TestResults.xml'
|
||||||
testRunTitle: 'PSCore_MacOS1013'
|
testRunTitle: 'PSCore_MacOS1013'
|
||||||
displayName: 'Publish Test Results'
|
displayName: 'Publish Test Results'
|
||||||
|
|||||||
Reference in New Issue
Block a user