Indented.StubCommand

1.4.0

A stub command or module is intended for use with tools like Pester.

A stub command is roughly similar to a mock, with the exclusion of the ability to fill the command body. It is designed to feed mock creation.

When Pester to creates a mock the original command must be available. If a command or module is not available a function might be written to resemble the or
A stub command or module is intended for use with tools like Pester.

A stub command is roughly similar to a mock, with the exclusion of the ability to fill the command body. It is designed to feed mock creation.

When Pester to creates a mock the original command must be available. If a command or module is not available a function might be written to resemble the original command.

This module is used to decrease the work required to define a fabricated function by creating a stub from the original.

Stubs can be created for modules such as ServerManager so they appear to execute correctly from development clients. It allows modules like ActiveDirectory, Exchange, and WebAdministration to run from a build server without expicit module deployment or session imports.
Show more

Minimum PowerShell version

5.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Indented.StubCommand

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Indented.StubCommand

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2017 Chris Dent. All rights reserved.

Package Details

Author(s)

  • Chris Dent

Tags

Pester

Functions

Get-StubRequiredType New-StubCommand New-StubDynamicParam New-StubModule New-StubType

Dependencies

This module has no dependencies.

FileList

Version History

Version Downloads Last updated
1.4.0 (current version) 1,917 8/13/2019
1.3.0 130 1/9/2019
1.2.2 201 7/28/2017
1.2.1 32 7/8/2017
1.1.0.0 73 4/14/2017
1.0.0.0 28 4/6/2017
Show more