Example VSCode Background Task for Pester Tests
PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
Images
Tests
VSCodeWatcherTask
Readme.md

Readme.md

VSCode Watcher Tasks for Pester

These tasks uses VSCode Watcher Tasks to watch for file system changes to auto trigger Pester tests.

Tasks

  • Watch.Project: Runs all tests if any ps1 in the project is modified.
  • Watch.Project.Single: Runs the Test for any modified file in module directory or Test in Tests directory.
  • Watch.Tests: Runs all tests if any Test in the project is modified.
  • Watch.Tests.Single: Runs the Test for any modified Test.

Watcher Runs all Tests

watchproject

Watcher Runs only Tests for edited file

watchtestssingle

Issues

Currently, the Tasks that run single tests will overwrite any unresolved issues previously found. I have filed a feature request to improve this behavior.