fix pester verbosity config (#58)

* fix pester verbosity config

* debug ScriptAnalayzer output
This commit is contained in:
OCram85 2022-06-28 09:52:29 +02:00 committed by GitHub
parent c31ee791bb
commit 88743e9ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ steps:
pwsh -NonInteractive -c "& { pwsh -NonInteractive -c "& {
Import-Module './tools/DroneIO.psm1'; Import-Module './tools/DroneIO.psm1';
Invoke-InstallDependencies; Invoke-InstallDependencies;
Invoke-UnitTest Invoke-UnitTest -Verbosity 'Detailed'
}" }"
- name: coverage - name: coverage

2
.vscode/tasks.json vendored
View File

@ -88,7 +88,7 @@
"Remove-Item ./coverage.xml -ErrorAction 'SilentlyContinue';", "Remove-Item ./coverage.xml -ErrorAction 'SilentlyContinue';",
"Remove-Item ./testResults.xml -ErrorAction 'SilentlyContinue';", "Remove-Item ./testResults.xml -ErrorAction 'SilentlyContinue';",
"Import-Module ./tools/DroneIO.psm1;", "Import-Module ./tools/DroneIO.psm1;",
"Invoke-UnitTest -CoverageFormat 'CoverageGutters' -Verbosity 'Debug'" "Invoke-UnitTest -CoverageFormat 'CoverageGutters' -Verbosity 'Diagnostic'"
], ],
"group": "test", "group": "test",
"problemMatcher": [ "problemMatcher": [

View File

@ -114,8 +114,8 @@ function Invoke-Linter {
} }
} }
catch { catch {
Write-Debug -Message $_.Exception.Message -Debug
Write-Error -Message 'PSScriptAnalyzer failer' Write-Error -Message 'PSScriptAnalyzer failer'
Write-Error -Message $_.Exception.Message -ErrorAction 'Stop'
} }
} }
} }