Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Authentication to seperate oAuth to seperate module.
Automate reconnect after expired token custom PSSpotify types and views Increased piping support Pester and Gherkin tests. Currently about 30% code coverage
- Loading branch information
Ryan Bartram
committed
Aug 21, 2017
1 parent
131cbe0
commit 00ffeb6
Showing
28 changed files
with
3,135 additions
and
408 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,20 @@ | ||
{ | ||
"version": "0.1.0", | ||
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe", | ||
"isShellCommand": true, | ||
"showOutput": "always", | ||
"version": "2.0.0", | ||
"command": "c:\\windows\\system32\\windowspowershell\\v1.0\\PowerShell.exe", | ||
"args": [ | ||
"-NoProfile", | ||
"-ExecutionPolicy", | ||
"Bypass" | ||
], | ||
"tasks": [ | ||
{ | ||
"taskName": "Continuous Pester: Modules", | ||
"isTestCommand": true, | ||
"suppressTaskName": true, | ||
"args": [ | ||
"Write-Host 'Starting continuous testing';", | ||
"Import-Module -Name Pester -RequiredVersion 3.4.3 -Force;", | ||
"Import-Module -Name PowerShellGuard -Force;", | ||
"New-Guard -Path '${workspaceRoot}' -PathFilter '*.psm1' -Recurse -TestCommand {write-host \"Invoking Continuous Pester: Modules\"; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true}} -TestPath '${workspaceRoot}\\Tests';", | ||
"New-Guard -Path '${workspaceRoot}\\Tests' -PathFilter '*.tests.ps1' -Recurse -TestCommand {write-host \"Invoking Continuous Pester: Modules\"; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true}} -TestPath '${workspaceRoot}\\Tests';", | ||
"Wait-Guard" | ||
], | ||
"isBackground": true, | ||
"problemMatcher": [ | ||
{ | ||
"owner": "Continuous Pester: Modules", | ||
"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": "^Invoking Continuous Pester: Modules$", | ||
"endsPattern": "^Passed:\\s\\d+\\sFailed:\\s\\d+\\sSkipped:\\s\\d+\\sPending:\\s\\d+\\sInconclusive:\\s\\d+\\s$" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"taskName": "Continuous Pester: Scripts", | ||
"isTestCommand": true, | ||
"suppressTaskName": true, | ||
"args": [ | ||
"Write-Host 'Starting continuous testing';", | ||
"Import-Module -Name Pester -RequiredVersion 3.4.3 -Force;", | ||
"Import-Module -Name PowerShellGuard -Force;", | ||
"New-Guard -Path '${workspaceRoot}' -PathFilter '*.ps1' -Recurse -TestCommand {write-host \"Invoking Continuous Pester: Scripts\"; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true}} -TestPath '${workspaceRoot}\\Tests';", | ||
"New-Guard -Path '${workspaceRoot}\\Tests' -PathFilter '*.tests.ps1' -Recurse -TestCommand {write-host \"Invoking Continuous Pester: Scripts\"; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true}} -TestPath '${workspaceRoot}\\Tests';", | ||
"Wait-Guard" | ||
], | ||
"isBackground": true, | ||
"problemMatcher": [ | ||
{ | ||
"owner": "Continuous Pester: Scripts", | ||
"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": "^Invoking Continuous Pester: Scripts$", | ||
"endsPattern": "^Passed:\\s\\d+\\sFailed:\\s\\d+\\sSkipped:\\s\\d+\\sPending:\\s\\d+\\sInconclusive:\\s\\d+\\s$" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"taskName": "Package Module and Increment", | ||
"isBuildCommand": false, | ||
"suppressTaskName": true, | ||
"args": [ | ||
"Write-Host 'Packaging ${workspaceRootFolderName}';", | ||
"$Module = Import-Module '${workspaceRoot}' -Force -PassThru;", | ||
"$Module.Version -match '(.?)(\\d+)$'| out-null; $NewVersion = ($Module.Version -replace '.?\\d+$' ,\"$($matches[1]+([int32]$matches[2] + 1))\");", | ||
"Update-ModuleManifest -ModuleVersion $NewVersion -Path '${workspaceRoot}\\${workspaceRootFolderName}.psd1' -ea SilentlyContinue;", | ||
"$Path = split-path '${workspaceRoot}' -parent; $Path += '\\{0}_{1}.zip';", | ||
"gci '${workspaceRoot}' -Exclude docs, .vscode | Compress-Archive -U -DestinationPath ($path -f $Module.Name, $NewVersion);", | ||
"write-host \"Module packaged to $($path -f $Module.Name, $NewVersion)\"" | ||
], | ||
"isBackground": true | ||
}, | ||
{ | ||
"taskName": "Package Module", | ||
"isBuildCommand": true, | ||
"suppressTaskName": true, | ||
"args": [ | ||
"Write-Host 'Packaging ${workspaceRootFolderName}';", | ||
"$Module = Import-Module '${workspaceRoot}' -Force -PassThru;", | ||
"$Path = split-path '${workspaceRoot}' -parent; $Path += '\\{0}_{1}.zip';", | ||
"gci '${workspaceRoot}' -Exclude docs, .vscode | Compress-Archive -U -DestinationPath ($path -f $Module.Name, $Module.Version);", | ||
"write-host \"Module packaged to $($path -f $Module.Name, $Module.Version)\"" | ||
], | ||
"isBackground": true | ||
} | ||
] | ||
"suppressTaskName": true, | ||
"tasks": [{ | ||
"taskName": "Test", | ||
"suppressTaskName": true, | ||
"isTestCommand": true, | ||
"showOutput": "always", | ||
"args": [ | ||
"Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
ConvertFrom-StringData @' | ||
SessionNotFound = "Spotify Session not established. Please run Connect-Spotify." | ||
TokenExpiredGenerating = "Session has expired. Requesting new token." | ||
'@ |
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.