gerane / VSCodeWatcherTask

Example VSCode Background Task for Pester Tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Example VSCode Background Task for Pester Tests


Languages

Language:PowerShell 100.0%