Skip to content

Commit f76cdc8

Browse files
committed
Update Install-RequiredModule
1 parent eaa0c7b commit f76cdc8

7 files changed

Lines changed: 305 additions & 47 deletions

File tree

.vscode/launch.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "PowerShell",
6+
"request": "launch",
7+
"name": "PowerShell Debug All Tests w/Code Coverage",
8+
"preLaunchTask": "build",
9+
"script": "Invoke-Pester",
10+
"args": [
11+
"-PesterOption @{ IncludeVSCodeMarker = $True }",
12+
"-CodeCoverage Output\\*.psm1"
13+
],
14+
"cwd": "${workspaceFolder}",
15+
"createTemporaryIntegratedConsole": true
16+
},
17+
{
18+
"type": "PowerShell",
19+
"request": "launch",
20+
"name": "PowerShell Debug Current Test File w/Args Prompt",
21+
"script": "$env:PSModulePath = '${workspaceFolder}\\Output;${env:PSModulePath};Import-Module Pester; Invoke-Pester -Path '${file}'",
22+
"args": [
23+
"-PesterOption @{ IncludeVSCodeMarker = $True }",
24+
"${command:SpecifyScriptArgs}"
25+
],
26+
"cwd": "${workspaceFolder}",
27+
"createTemporaryIntegratedConsole": true
28+
},
29+
{
30+
"type": "PowerShell",
31+
"request": "launch",
32+
"name": "PowerShell Interactive Session",
33+
"cwd": "${workspaceFolder}",
34+
"createTemporaryIntegratedConsole": true
35+
},
36+
]
37+
}

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"files.trimTrailingWhitespace": true,
3+
"files.insertFinalNewline": true,
4+
"editor.tabSize": 4,
5+
"editor.insertSpaces": true,
6+
"files.encoding": "utf8",
7+
"powershell.codeFormatting.preset": "OTBS",
8+
"powershell.codeFormatting.ignoreOneLineBlock": false,
9+
"powershell.codeFormatting.newLineAfterCloseBrace": false,
10+
"files.associations": {
11+
"*.ps1xml": "xml"
12+
}
13+
}

.vscode/tasks.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build",
8+
"group": {
9+
"kind": "build",
10+
"isDefault": true
11+
},
12+
"type": "shell",
13+
"command": "${workspaceFolder}\\build.ps1",
14+
"presentation": {
15+
"echo": true,
16+
"reveal": "silent",
17+
"focus": false,
18+
"panel": "shared",
19+
"showReuseMessage": true,
20+
"clear": false
21+
}
22+
},
23+
{
24+
"label": "test",
25+
"group": {
26+
"kind": "test",
27+
"isDefault": true
28+
},
29+
"type": "shell",
30+
"options": {
31+
"cwd": "${workspaceFolder}",
32+
"env": {
33+
"PSModulePath": "${workspaceFolder}\\Output;${env:PSModulePath}"
34+
}
35+
},
36+
"command": "Invoke-Pester",
37+
"args": [
38+
"${workspaceFolder}\\Tests",
39+
"-PesterOption", "@{ IncludeVSCodeMarker = $True }",
40+
"-CodeCoverage", "${workspaceFolder}\\Output\\*.psm1"
41+
],
42+
"presentation": {
43+
"echo": true,
44+
"reveal": "always",
45+
"focus": true,
46+
"panel": "shared",
47+
"showReuseMessage": true,
48+
"clear": true
49+
}
50+
}
51+
]
52+
}

GitVersion.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ branches:
77
master:
88
increment: Patch
99
features:
10-
regex: features?[/-]
11-
source-branches:
12-
- master
13-
releases:
14-
increment: None
15-
regex: releases?[/-]
10+
increment: Patch
11+
regex: .*?/
1612
source-branches:
1713
- master
14+
- features

0 commit comments

Comments
 (0)