Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/windperson/demopester
- Owner: windperson
- License: mit
- Created: 2024-09-03T08:12:24.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-18T04:56:14.000Z (about 2 months ago)
- Last Synced: 2024-12-18T05:31:55.686Z (about 2 months ago)
- Topics: pester, powershell, tdd
- Language: PowerShell
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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.