Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/windperson/demopester

Demo using Pester to do various PowerShell script unit test
https://github.com/windperson/demopester

pester powershell tdd

Last synced: 15 days ago
JSON representation

Demo using Pester to do various PowerShell script unit test

Awesome Lists containing this project

README

        

# PowerShell Pester Demo project

This project is a demo of how to use [Pester](https://github.com/pester/Pester) to test PowerShell scripts.

You need to [install Pester v5.x or above](https://pester.dev/docs/introduction/installation) to run the tests.

## Running the tests

### DemoSimpleModule

Simply run the following command in the **DemoSimpleModule** directory:

```powershell
Invoke-Pester
```

### Demo1to1MappingTestModule

See the [Readme](./Demo1to1MappingTestModule/Readme.md) in the **Demo1to1MappingTestModule** directory for more details.

### MockNetworkDrive

See the [Readme](./DemoTestWithMock/MockNetworkDrive/Readme.md) in the **DemoTestWithMock** directory for more details.