Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 88743e9

Browse files
authored
fix pester verbosity config (#58)
* fix pester verbosity config * debug ScriptAnalayzer output
1 parent c31ee79 commit 88743e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ steps:
3434
pwsh -NonInteractive -c "& {
3535
Import-Module './tools/DroneIO.psm1';
3636
Invoke-InstallDependencies;
37-
Invoke-UnitTest
37+
Invoke-UnitTest -Verbosity 'Detailed'
3838
}"
3939
4040
- name: coverage

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"Remove-Item ./coverage.xml -ErrorAction 'SilentlyContinue';",
8989
"Remove-Item ./testResults.xml -ErrorAction 'SilentlyContinue';",
9090
"Import-Module ./tools/DroneIO.psm1;",
91-
"Invoke-UnitTest -CoverageFormat 'CoverageGutters' -Verbosity 'Debug'"
91+
"Invoke-UnitTest -CoverageFormat 'CoverageGutters' -Verbosity 'Diagnostic'"
9292
],
9393
"group": "test",
9494
"problemMatcher": [

tools/DroneIO.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ function Invoke-Linter {
114114
}
115115
}
116116
catch {
117+
Write-Debug -Message $_.Exception.Message -Debug
117118
Write-Error -Message 'PSScriptAnalyzer failer'
118-
Write-Error -Message $_.Exception.Message -ErrorAction 'Stop'
119119
}
120120
}
121121
}

0 commit comments

Comments
 (0)