Last active
June 29, 2017 23:05
-
-
Save gerane/20c6a36f6b45fcb9fca3c80791e7f9f6 to your computer and use it in GitHub Desktop.
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
{ | |
"version": "0.1.0", | |
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe", | |
"isShellCommand": true, | |
"showOutput": "always", | |
"args": [ | |
"-NoProfile", "-ExecutionPolicy", "Bypass" | |
], | |
"tasks": [ | |
{ | |
"taskName": "Watch", | |
"suppressTaskName": true, | |
"args": [ | |
"Write-Host 'Watching';", | |
"Import-Module -Name Pester -RequiredVersion 3.4.3 -Force;", | |
"Import-Module -Name PowerShellGuard;", | |
"(gci \"${workspaceRoot}\\${workspaceRootFolderName}\\*.ps1\" -recurse).Foreach{ New-Guard -Path $_.FullName -TestPath \"${workspaceRoot}\\Tests\\$($_.basename).Tests.ps1\" -TestCommand {Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true}} -ErrorAction SilentlyContinue};", | |
"Wait-Guard" | |
], | |
"isBackground": true, | |
"problemMatcher": [ | |
{ | |
"owner": "powershell", | |
"fileLocation": "absolute", | |
"pattern": [ | |
{ | |
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$", | |
"message": 1 | |
}, | |
{ | |
"regexp": "^\\s+at\\s+[^,]+,\\s*(.*?):\\s+line\\s+(\\d+)$", | |
"file": 1, | |
"line": 2 | |
} | |
], | |
"watching": { | |
"activeOnStart": true, | |
"beginsPattern": "^Watching$", | |
"endsPattern": "^Passed:\\s(\\d+)\\sFailed:\\s(\\d+)\\sSkipped:\\s(\\d+)\\sPending:\\s(\\d+)\\sInconclusive:\\s(\\d+)\\s$" | |
} | |
} | |
] | |
} | |
] | |
} |
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
{ | |
"version": "0.1.0", | |
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe", | |
"isShellCommand": true, | |
"showOutput": "always", | |
"args": [ | |
"-NoProfile", "-ExecutionPolicy", "Bypass" | |
], | |
"tasks": [ | |
{ | |
"taskName": "Watch", | |
"suppressTaskName": true, | |
"args": [ | |
"Write-Host 'Watching';", | |
"Import-Module -Name Pester -RequiredVersion 3.4.3 -Force;", | |
"Import-Module -Name PowerShellGuard;", | |
"New-Guard -Path \"${workspaceRoot}\\${workspaceRootFolderName}\" -MonitorSubdirectories -TestPath \"${workspaceRoot}\\Tests\" -TestCommand {Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true}} -Wait;" | |
], | |
"isBackground": true, | |
"problemMatcher": [ | |
{ | |
"owner": "powershell", | |
"fileLocation": "absolute", | |
"pattern": [ | |
{ | |
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$", | |
"message": 1 | |
}, | |
{ | |
"regexp": "^\\s+at\\s+[^,]+,\\s*(.*?):\\s+line\\s+(\\d+)$", | |
"file": 1, | |
"line": 2 | |
} | |
], | |
"watching": { | |
"activeOnStart": true, | |
"beginsPattern": "^Watching$", | |
"endsPattern": "^Passed:\\s(\\d+)\\sFailed:\\s(\\d+)\\sSkipped:\\s(\\d+)\\sPending:\\s(\\d+)\\sInconclusive:\\s(\\d+)\\s$" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment