pester / vscode-adapter

Run PowerShell Pester Tests with Visual Studio Code
MIT License
58 stars 14 forks source link
hacktoberfest pester powershell scripts test testing visual-studio-code vscode vscode-extension

Pester Test Adapter for Visual Studio Code Latest Installs vsix Build Analysis

License: MIT GitHub stars

๐Ÿšง THIS EXTENSION IS IN PREVIEW STATE, THERE ARE GOING TO BE BUGS ๐Ÿšง

This extension provides the ability to run Pester tests utilizing the native Testing functionality first introduced in Visual Studio Code 1.59

Example

Highlights

๐Ÿ” Pester Test Browser ๐Ÿž Debugging Support ๐Ÿ‘ฉโ€๐Ÿ’ป Native PowerShell Extension Integration ๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Expands Test Cases

Extension Prerequisites

Usage

The extension will automatically discover all .Tests.ps1 Pester files in your workspace, you can then run tests either from the Tests pane or from the green arrows that will appear adjacent to your tests.

Installing the latest preview VSIX

Preview VSIX extension packages are generated upon every commit to main and every pull request update. To install a beta build:

  1. Click the green checkmark next to the latest commit
  2. Click Details next to the ๐Ÿ‘ทโ€โ™‚๏ธ Build Visual Studio Code Extension task
  3. Click Artifacts in the upper right of the window
  4. Download the latest artifact zip and unzip it, it should be named vsix-{version}
  5. Open the resulting folder in vscode, right click the .vsix file, and choose Install Extension VSIX near the bottom.
  6. Alternatively in vscode you can hit F1 and choose Extensions: Install from VSIX and browse for the vsix file.

Configuration

This extension will use the PowerShell Extension Pester verbosity settings for the output.

Troubleshooting

The Pester Output pane maintains a log of the activities that occur with the Pester extension. You can use Set Log Level in the command palette to increase the log level to debug or trace to get more information about what is going on. Include this information when submitting an issue along with reproduction steps.

Known Issues