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.

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

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

Author(s)

Chris Dent

Copyright

(c) 2017 Chris Dent. All rights reserved.

Owners

Tags

Pester

Functions

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

Dependencies

This module has no dependencies.

Version History

Version Downloads Last updated
1.4.0 (current version) 383 8/13/2019
1.3.0 114 1/9/2019
1.2.2 184 7/28/2017
1.2.1 16 7/8/2017
1.1.0.0 57 4/14/2017
1.0.0.0 11 4/6/2017