Closed
Description
There are small problems in the ModuleHelp.Tests.ps1
file when running tests on Pwsh, or running on an environment without PSScriptAnalyzer actually installed.
affected areas:
- test failure when PSScriptAnalyzer is not installed (only loaded from the .\out\ directory)
- test failure on Pwsh due to non-supported 'Workspace' command type
Steps to reproduce
- on a system without PSScriptAnalyzer module installed
- when build configuration is set to DEBUG
.\PSScriptAnalyzer\build.ps1
.\PSScriptAnalyzer\build.ps1 -Test
Expected behavior
- No test failures
- No test failures
Actual behavior
- Test fails to properly check module version, because it was not installed, only loaded from
.\PSScriptAnalyzer\out\
- Test fails with an error that the 'AttachAndDebug' parameter for Invoke-ScriptAnalyzer and Invoke-Formatter does not have Help.