Skip to content

Commit 7ff311f

Browse files
Merge pull request #17 from hardKOrr/master
HelperModule.psm1 - local Import-Module to use Join-Path
2 parents 9da2b76 + 677e829 commit 7ff311f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Extension/task/HelperModule.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Import-Pester {
4646
}
4747
catch {
4848
Write-Host "##vso[task.logissue type=warning]Falling back to version of Pester shipped with extension. To use a newer version please update the version of PowerShellGet available on this machine."
49-
Import-Module "$PSScriptRoot\4.10.1\Pester.psd1" -force -Verbose:$false
49+
Import-Module -Name (Join-Path $PSScriptRoot "4.10.1\Pester.psd1") -Force -Verbose:$false
5050
}
5151
}
5252

@@ -67,7 +67,7 @@ function Import-Pester {
6767
}
6868
else {
6969
Write-Host "##vso[task.logissue type=warning]Falling back to version of Pester shipped with extension. To use a newer version please update the version of PowerShellGet available on this machine."
70-
Import-Module "$PSScriptRoot\4.10.1\Pester.psd1" -Force -Verbose:$false
70+
Import-Module -Name (Join-Path $PSScriptRoot "4.10.1\Pester.psd1") -Force -Verbose:$false
7171
}
7272

7373
}

Extension/task/task.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "cca5462b-887d-4617-bf3f-dcf0d3c622e9",
33
"name": "Pester",
44
"friendlyName": "Pester Test Runner",
5-
"description": "Run Pester tests by either installing the latest version of Pester at run time (if possible) or using the version shipped with the task (4.6.0)",
5+
"description": "Run Pester tests by either installing the latest version of Pester at run time (if possible) or using the version shipped with the task (4.10.1)",
66
"helpMarkDown": "Version: #{Build.BuildNumber}#. [More Information](https://github.com/pester/AzureDevOpsExtension)",
77
"category": "Test",
88
"visibility": [

0 commit comments

Comments
 (0)