diff --git a/azure-pipelines/templates/test-job.yml b/azure-pipelines/templates/test-job.yml index 22e7ac2..3dee602 100644 --- a/azure-pipelines/templates/test-job.yml +++ b/azure-pipelines/templates/test-job.yml @@ -76,6 +76,7 @@ jobs: } } Invoke-Pester -Script $pesterParams -OutputFile "test_results.xml" -OutputFormat NUnitXml + pwsh: true workingDirectory: '$(Build.SourcesDirectory)/tests' - task: PublishTestResults@2 diff --git a/tests/python-tests.ps1 b/tests/python-tests.ps1 index 550ea4e..71bb313 100644 --- a/tests/python-tests.ps1 +++ b/tests/python-tests.ps1 @@ -1,5 +1,5 @@ param ( - [string] [Parameter (Mandatory = $true)] [ValidateNotNullOrEmpty()] + [semver] [Parameter (Mandatory = $true)] [ValidateNotNullOrEmpty()] $Version, [string] [Parameter (Mandatory = $true)] [ValidateNotNullOrEmpty()] $Platform