diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6ff7239e4..e8464cda2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -106,7 +106,7 @@ stages: displayName: 'Run Unit Test for SP2013' inputs: filePath: './build.ps1' - arguments: "-Tasks test -PesterScript @(@{ Path = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit'; Parameters = @{SharePointCmdletModule = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit/Stubs/SharePoint/15.0.4805.1000/Microsoft.SharePoint.PowerShell.psm1' }})" + arguments: "-Tasks test -PesterScript @(@{ Path = '$(Build.SourcesDirectory)/Tests/Unit'; Parameters = @{SharePointCmdletModule = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit/Stubs/SharePoint/15.0.4805.1000/Microsoft.SharePoint.PowerShell.psm1' }})" pwsh: false - task: PublishTestResults@2 @@ -142,7 +142,7 @@ stages: displayName: 'Run Unit Test for SP2016' inputs: filePath: './build.ps1' - arguments: "-Tasks test -PesterScript @(@{ Path = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit'; Parameters = @{SharePointCmdletModule = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit/Stubs/SharePoint/16.0.4456.1000/Microsoft.SharePoint.PowerShell.psm1' }})" + arguments: "-Tasks test -PesterScript @(@{ Path = '$(Build.SourcesDirectory)/Tests/Unit'; Parameters = @{SharePointCmdletModule = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit/Stubs/SharePoint/16.0.4456.1000/Microsoft.SharePoint.PowerShell.psm1' }})" pwsh: false - task: PublishTestResults@2 @@ -177,7 +177,7 @@ stages: displayName: 'Run Unit Test for SP2019' inputs: filePath: './build.ps1' - arguments: "-Tasks test -PesterScript @(@{ Path = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit'; Parameters = @{SharePointCmdletModule = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit/Stubs/SharePoint/16.0.10337.12109/Microsoft.SharePoint.PowerShell.psm1' }})" + arguments: "-Tasks test -PesterScript @(@{ Path = '$(Build.SourcesDirectory)/Tests/Unit'; Parameters = @{SharePointCmdletModule = '$(Build.SourcesDirectory)/$(buildArtifactName)/Tests/Unit/Stubs/SharePoint/16.0.10337.12109/Microsoft.SharePoint.PowerShell.psm1' }})" pwsh: false - task: PublishTestResults@2 diff --git a/build.yaml b/build.yaml index 61782a7ad..7cb8b7fac 100644 --- a/build.yaml +++ b/build.yaml @@ -82,7 +82,9 @@ Pester: DscTest: ExcludeTag: - - "Common Tests - New Error-Level Script Analyzer Rules" + - 'Common Tests - New Error-Level Script Analyzer Rules' + - 'Common Tests - Validate Localization' + - 'Common Tests - Validate Example Files To Be Published' Tag: ExcludeSourceFile: - output