Stucco icon indicating copy to clipboard operation
Stucco copied to clipboard

Help.Tests.ps1 errors

Open quonic opened this issue 2 years ago • 3 comments

Description When running build.ps1 you get errors.

Steps to Reproduce

  1. Create a module
  2. Run .\build.ps1

Current Behavior

Describing Test help for <_.Name>
[-] Describe Test help for <_.Name> failed
  CommandNotFoundException: The term 'script:FilterOutCommonParams' is not recognized as a name of a cmdlet, function, script file, or executable program.
  Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  at <ScriptBlock>, E:\Code\libguestfsPS\tests\Help.tests.ps1:54

Expected behavior Shouldn't produce test errors after creating module from template.

Possible Solution In Help.tests.ps1 , lines 44, 54, and 56: Replace script:FilterOutCommonParams with FilterOutCommonParams

Screenshots N/A

Environment

  • Module version used: 0.4.0
  • Operating System and PowerShell version:
Name                           Value
----                           -----
PSVersion                      7.2.2
PSEdition                      Core
GitCommitId                    7.2.2
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional context N/A

quonic avatar Mar 17 '22 20:03 quonic

@quonic This is resolved in #27. Are you pulling the latest from main?

devblackops avatar Mar 20 '22 22:03 devblackops

@devblackops Installed from powershell gallery, v0.4.0.

quonic avatar Mar 20 '22 22:03 quonic

@devblackops Looks like 0.4.0 does have the old one. I'm guessing a new version of the module just needs to be published? I didn't see a GH action to publish. https://www.powershellgallery.com/packages/Stucco/0.4.0/Content/template%5Ctests%5CHelp.tests.ps1

HeyItsGilbert avatar Mar 21 '22 01:03 HeyItsGilbert

@HeyItsGilbert @quonic

v0.5.0 has been released with this fix. Sorry I slept on this for so long.

devblackops avatar Sep 16 '22 05:09 devblackops