kitchen-pester 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kitchen/verifier/pester.rb +7 -14
- data/lib/kitchen/verifier/pester_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 138cd15e107c0e0331ed15ad42b8f58771c03cf14c4af44a861aa01a54957198
|
|
4
|
+
data.tar.gz: 4c57297d38ba62710e58e246573a603b37dde2b076026f023afe2bd36edc7137
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0262276aa0ad1d0402de1449383286096e66599f98e7004059d404a9309da9491e9677038fad917e517e8d5e40fd94f2cfc8b224598960e1e2eee05e72efa901
|
|
7
|
+
data.tar.gz: 866e065c5caa9472fcad981cdecaa3a5815bbb8c2a7b28ce1a804df7ab08a7834b0175fecbc6712f57165fae982b6a86312761bc97460578cb47d766e68acc88
|
|
@@ -136,8 +136,8 @@ module Kitchen
|
|
|
136
136
|
<<-CMD
|
|
137
137
|
Import-Module -Name Pester -Force
|
|
138
138
|
|
|
139
|
-
$TestPath = "#{config[:root_path]}"
|
|
140
|
-
$OutputFilePath = Join-Path
|
|
139
|
+
$TestPath = Join-Path "#{config[:root_path]}" -ChildPath "suites"
|
|
140
|
+
$OutputFilePath = Join-Path "#{config[:root_path]}" -ChildPath 'PesterTestResults.xml'
|
|
141
141
|
|
|
142
142
|
$options = New-PesterOption -TestSuiteName "Pester - #{instance.to_str}"
|
|
143
143
|
|
|
@@ -165,7 +165,7 @@ module Kitchen
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
$global:ProgressPreference = 'SilentlyContinue'
|
|
168
|
-
$env:PSModulePath = "$(Join-Path
|
|
168
|
+
$env:PSModulePath = "$(Join-Path "#{config[:root_path]}" -ChildPath 'modules');$env:PSModulePath"
|
|
169
169
|
|
|
170
170
|
#{script}
|
|
171
171
|
EOH
|
|
@@ -196,8 +196,8 @@ module Kitchen
|
|
|
196
196
|
@(Get-Module -Name $Name -ListAvailable -ErrorAction SilentlyContinue).Count -gt 0
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
$VerifierModulePath = Confirm-Directory -Path
|
|
200
|
-
$
|
|
199
|
+
$VerifierModulePath = Confirm-Directory -Path (Join-Path #{config[:root_path]} -ChildPath 'modules')
|
|
200
|
+
$VerifierDownloadPath = Confirm-Directory -Path (Join-Path #{config[:root_path]} -ChildPath 'pester')
|
|
201
201
|
|
|
202
202
|
$env:PSModulePath = "$VerifierModulePath;$PSModulePath"
|
|
203
203
|
|
|
@@ -241,14 +241,7 @@ module Kitchen
|
|
|
241
241
|
catch {
|
|
242
242
|
Write-Host "Installing from Github"
|
|
243
243
|
|
|
244
|
-
$
|
|
245
|
-
"$env:TEMP/PesterDownload"
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
New-Item -ItemType Directory -Path "$env:TEMP/PesterDownload"
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
$zipFile = Join-Path (Get-Item -Path $downloadFolder).FullName -ChildPath "pester.zip"
|
|
244
|
+
$zipFile = Join-Path (Get-Item -Path $VerifierDownloadPath).FullName -ChildPath "pester.zip"
|
|
252
245
|
|
|
253
246
|
if (-not (Test-Path $zipfile)) {
|
|
254
247
|
$source = 'https://github.com/pester/Pester/archive/4.10.1.zip'
|
|
@@ -348,7 +341,7 @@ module Kitchen
|
|
|
348
341
|
end
|
|
349
342
|
|
|
350
343
|
def sandboxify_path(path)
|
|
351
|
-
File.join(sandbox_path, path.sub(%r{#{suite_test_folder}/}i, ""))
|
|
344
|
+
File.join(sandbox_path, "suites", path.sub(%r{#{suite_test_folder}/}i, ""))
|
|
352
345
|
end
|
|
353
346
|
|
|
354
347
|
# Returns an Array of common helper filenames currently residing on the
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-pester
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Murawski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|