Skip to content

Commit fec2dd4

Browse files
committed
Output verbose
1 parent 1524e4c commit fec2dd4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ if ($Test) {
518518
(Get-Module -Name Pester -ListAvailable).Path
519519
}
520520

521-
Invoke-Pester -ErrorAction Stop
521+
Invoke-Pester -ErrorAction Stop -Output Detailed -Verbose
522522
}
523523

524524
function Find-MakeAppx() {

powershell-adapter/Tests/powershellgroup.config.tests.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,12 @@ Describe 'PowerShell adapter resource tests' {
321321
Name: 'TestClassResource'
322322
Ensure: 'Present'
323323
"@
324-
$out = dsc -l trace config set -i $yaml -w | ConvertFrom-Json
324+
$out = dsc config set -i $yaml -w | ConvertFrom-Json
325+
326+
Write-Verbose -Message ("Output: $($out | ConvertTo-Json -Depth 10)") -Verbose
325327
$LASTEXITCODE | Should -Be 0
326-
$out.results.result.afterstate.Result[0].name | Should -Be "TestClassResource"
327-
$out.results.result.afterState.result[0]._metadata.whatIf | Should -Be "A test message from the WhatIf method of TestClassResource"
328+
$out.results.result.afterstate.result[0].name | Should -Be "TestClassResource"
329+
$out.results.result.afterstate.result[0]._metadata.whatIf | Should -Be "A test message from the WhatIf method of TestClassResource"
328330
}
329331
}
330332

0 commit comments

Comments
 (0)