-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
601 additions
and
588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Pester Tests", | ||
"script": ".\\.env.ps1", | ||
"script": "Invoke-Pester", | ||
"args": [], | ||
"cwd": "${workspaceRoot}" | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Launch (current file)", | ||
"script": "${file}", | ||
"args": [], | ||
"cwd": "${file}" | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "attach", | ||
"name": "PowerShell Attach to Host Process", | ||
"processId": "${command.PickPSHostProcess}", | ||
"runspaceId": 1 | ||
}, | ||
{ | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"name": "PowerShell Interactive Session", | ||
"cwd": "${workspaceRoot}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"files.encoding": "utf8", | ||
"files.eol": "\n", | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"editor.tabSize": 4, | ||
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1", | ||
"powershell.codeFormatting.openBraceOnSameLine": true, | ||
"powershell.codeFormatting.newLineAfterOpenBrace": true, | ||
"powershell.codeFormatting.newLineAfterCloseBrace": true, | ||
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true, | ||
"powershell.codeFormatting.whitespaceBeforeOpenParen": true, | ||
"powershell.codeFormatting.whitespaceAroundOperator": true, | ||
"powershell.codeFormatting.whitespaceAfterSeparator": true, | ||
"[markdown]": { | ||
"editor.wordwrap": "on", | ||
"editor.renderWhitespace": "all", | ||
"editor.acceptSuggestionOnEnter": false, | ||
"editor.rulers": [80], | ||
"editor.trimAutoWhitespace": false | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// A task runner that invokes Pester to run all Pester tests under the | ||
// current workspace folder. | ||
// NOTE: This Test task runner requires an updated version of Pester (>=4.0.3) | ||
// in order for the problemMatcher to find failed test information (message, line, file). | ||
// If you don't have that version, you can update Pester from the PowerShell Gallery | ||
// with this command: | ||
// | ||
// PS C:\> Update-Module Pester | ||
// | ||
// If that gives an error like: | ||
// "Module 'Pester' was not installed by using Install-Module, so it cannot be updated." | ||
// then execute: | ||
// | ||
// PS C:\> Install-Module Pester -Scope CurrentUser -Force | ||
// | ||
// NOTE: The Clean, Build and Publish tasks require PSake. PSake can be installed | ||
// from the PowerShell Gallery with this command: | ||
// | ||
// PS C:\> Install-Module PSake -Scope CurrentUser -Force | ||
// | ||
// Available variables which can be used inside of strings: | ||
// ${workspaceFolder} the path of the workspace folder that contains the tasks.json file | ||
// ${workspaceFolderBasename} the name of the workspace folder that contains the tasks.json file without any slashes (/) | ||
// ${file} the current opened file | ||
// ${relativeFile} the current opened file relative to the workspace folder containing the file | ||
// ${fileBasename} the current opened file's basename | ||
// ${fileBasenameNoExtension} the current opened file's basename without the extension | ||
// ${fileDirname} the current opened file's dirname | ||
// ${fileExtname} the current opened file's extension | ||
// ${cwd} the task runner's current working directory on startup | ||
// ${lineNumber} the current selected line number in the active file | ||
{ | ||
"version": "2.0.0", | ||
"windows": { | ||
"options": { | ||
"shell": { | ||
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | ||
"args": [ | ||
"-NoProfile", | ||
"-ExecutionPolicy", | ||
"Bypass", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"linux": { | ||
"options": { | ||
"shell": { | ||
"executable": "/usr/bin/pwsh", | ||
"args": [ | ||
"-NoProfile", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"osx": { | ||
"options": { | ||
"shell": { | ||
"executable": "/usr/local/bin/pwsh", | ||
"args": [ | ||
"-NoProfile", | ||
"-Command" | ||
] | ||
} | ||
} | ||
}, | ||
"tasks": [ | ||
{ | ||
"label": "Clean", | ||
"type": "shell", | ||
"command": "Invoke-Build -task Clean" | ||
}, | ||
{ | ||
"label": "Build", | ||
"type": "shell", | ||
"command": "Invoke-Build -task Build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "Test", | ||
"type": "shell", | ||
"command": "Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true}", | ||
"group": { | ||
"kind": "test", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [ | ||
"$pester" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.