Skip to content

Commit

Permalink
feature: task for run tests only in current file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ra0to committed Feb 13, 2023
1 parent 14b0a4f commit b52a1f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@
"problemMatcher": [
"$pester"
]
},
{
"label": "TestCurrentFile",
"type": "shell",
"command": "Clear-Host; Import-Module Pester -MinimumVersion 5.0.0; $c = [PesterConfiguration]::Default; $c.Run.Path = '${file}'; $c.Output.Verbosity = 'Detailed'; Invoke-Pester -Configuration $c",
"group": {
"kind": "test",
"isDefault": false
},
"problemMatcher": [
"$pester"
]
}
]
}

0 comments on commit b52a1f5

Please sign in to comment.