Skip to content

Conversation

@kookie
Copy link
Contributor

@kookie kookie commented Oct 15, 2019

Added Help.Tests.ps1 to dot source all ps1 functions to verify comment based help has been added.

  • Description
  • Synopsis
  • Examples
  • Parameters

Notes:

  • Scripts have been ignored and the -skip parameter has been added to the the test.
  • There are two exceptions and have been dealt with via the else if statement.
  • Some functions have been modified to work with the test scripts.

Output from Pester:

Tests completed in 66.27s
Tests Passed: 386, Failed: 68, Skipped: 13, Pending: 0, Inconclusive: 0

kookie added 10 commits October 15, 2019 09:19
Trim removed function names that ended in p. Dot source fixed. No need for .\ when using full path
When dot sourcing the scripts will automaticaly run. Added logic to remove the scripts and pass pester tests with $true should be $true.
Extra line causes function to run.
Function Template file has the Get-Something function name. Forced script to load the correct name.
Copy link
Owner

@lazywinadmin lazywinadmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kookie ! Looks good

@lazywinadmin lazywinadmin merged commit 32c4af4 into lazywinadmin:master Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants