You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/vscode.mdx
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@ title: Visual Studio Code
3
3
description: See how Visual Studio Code and its extensions helps you run and debug your Pester tests directly inside the editor
4
4
---
5
5
6
-
Using Visual Studio Code with the latest [PowerShell extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) provides a great experience for writing PowerShell code. The extension includes Pester-specific features to improve the way you write, run and debug Pester tests.
6
+
Using Visual Studio Code with the latest [PowerShell extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell) provides a great experience for writing PowerShell code. The extension even includes Pester-specific features to improve the way you write, run and debug tests.
7
7
8
8
### Code lens
9
9
10
-
With the `Pester: Code Lens` setting enabled, VSCode will show `Run tests` or `Debug tests` links above your Pester blocks for quick execution. Starting with Pester 5 this also works on individual tests. You can even run tests that are marked as skipped by running them individually.
10
+
The editor shows `Run tests` or `Debug tests` links above your Pester blocks for quick execution of `Describe` and `Context` blocks. Starting with Pester 5 this also works on individual tests. You can even run tests that are marked as skipped by running them individually.
11
11
12
12

13
13
@@ -16,7 +16,8 @@ To enable the improved code lens for Pester 5 you need to disable the "Use Legac
16
16
1. In Visual Studio Code, open **File | Preferences | Settings** (<kbd>⌘/Ctrl</kbd> + <kbd>,</kbd>)
17
17
2. In the **Settings** window, navigate to the **Extensions | PowerShell** section.
18
18
3. Uncheck the **Pester: Use Legacy Code Lens** checkbox.
19
-
4. Close the **Settings** window.
19
+
4. Make sure **Pester: Code Lens** is checked (default).
20
+
5. Close the **Settings** window.
20
21
21
22
### Output verbosity
22
23
@@ -26,13 +27,11 @@ You can control the output verbosity level in VSCode output, or let it inherit f
26
27
27
28
### Navigation
28
29
29
-
Pester-blocks are recognized by the PowerShell-extension to simplify navigation in your test files.
30
+
Pester-blocks are recognized as symbols to simplify navigation in multiple ways:
30
31
31
-
- The Outline panle shows an overview of your Pester-blocks.<br/>
32
+
- The Outline panel shows an overview of your Pester-blocks.<br/>
32
33

33
-
34
-
- Your current location in easily identified using breadcrumbs or the sticky scroll features.<br/>
34
+
- The current location in nested blocks are shown in breadcrumbs and sticky scroll.<br/>
35
35

36
-
37
-
-`Context`, `Describe` and `It` blocks are all searchable using Go to symbol commands.<br/>
36
+
-`Context`, `Describe` and `It` blocks are all searchable using "Go to symbol" commands.<br/>
38
37

0 commit comments