Templates/PowerShellModule/.vscode/tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "DeployModule",
            "type": "shell",
            "command": ".\\helpers\\deployModule.ps1",
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "echo": true,
                "reveal": "always",
                "focus": true,
                "panel": "dedicated",
                "showReuseMessage": false,
                "clear": true
            }
        },
        {
            "label": "InvokePester",
            "type": "shell",
            "command": "Invoke-Pester -Script .\\tests\\<%=$PLASTER_PARAM_ModuleName%>.tests.ps1 ${input:codeCoverage}",
            "group": {
                "kind": "test",
                "isDefault": true
            },
            "problemMatcher": [
                "$pester"
            ],
            "presentation": {
                "echo": false,
                "reveal": "always",
                "focus": true,
                "panel": "dedicated",
                "showReuseMessage": false,
                "clear": true
            },
        },
    ],
    "inputs": [
        {
            "id": "codeCoverage",
            "type": "pickString",
            "description": "Code Coverage Option",
            "default": "",
            "options": [
                "",
                "-CodeCoverage '.\\<%=$PLASTER_PARAM_ModuleName%>.psm1'"
            ]
        }
    ]
}