Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help.Tests.ps1 errors #32

Closed
quonic opened this issue Mar 17, 2022 · 4 comments
Closed

Help.Tests.ps1 errors #32

quonic opened this issue Mar 17, 2022 · 4 comments

Comments

@quonic
Copy link

quonic commented Mar 17, 2022

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

@devblackops
Copy link
Owner

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

@quonic
Copy link
Author

quonic commented Mar 20, 2022

@devblackops Installed from powershell gallery, v0.4.0.

@HeyItsGilbert
Copy link
Contributor

@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

@devblackops
Copy link
Owner

@HeyItsGilbert @quonic

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants