Overview
All of these tutorials are written using Windows 10 Professional, PowerShell 5.1, Pester, and Visual Studio Code. Here are the specifics.
- Windows 10 Professional, Version 1703
- PowerShell 5.1.15063.608
- Pester 4.0.8
- Visual Studio Code 1.16.1
While detailed setup instructions might come later, here are a few notes.
PowerShell
- Install Pester (need to run as Admin)
- Install Solarized color scheme
Pester
- Seems the default install-module needs admin access. As of this writing, I’m a novice. I’ll eventually not install these in “C:\Program Files\WindowsPowerShell\Modules”
Visual Studio Code
Modules I’ve installed:
- Powershell 1.4.3
- Vim 0.10.1 Set up custom tasks to run pester. One will run all tests, while the other will run only the current Pester .tests.ps1 file. To update,
- Select the Tasks Menu,
- Then Configure Tasks
- If this is the first time you’ve configured tasks, select Other as the template to use.
- Finally, paste the following JSON into the custom tasks window
Custom key bindings to run the custom tasks:
- Select File::Preferences::Keyboard Shortcuts
- Next, click on the link at the top of the window for keybindings.json
- The left window contains the default values. Edit the right window to override the default values. Copy the following key bindings:
Comments