Skip to content

Commit

Permalink
exclude non-tagged describes from tagged run (pester#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Sep 4, 2018
1 parent 055bb3e commit 5a8dd6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Functions/Describe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ function DescribeImpl {
return
}
}
if ($Pester.TagFilter -and $Tag) {
if ($Pester.TagFilter) {
if (-not (Contain-AnyStringLike -Filter $Pester.TagFilter -Collection $Tag)) {
return
}
}

if ($Pester.ExcludeTagFilter -and $Tag) {
if ($Pester.ExcludeTagFilter) {
if (Contain-AnyStringLike -Filter $Pester.ExcludeTagFilter -Collection $Tag) {
return
}
Expand Down

0 comments on commit 5a8dd6b

Please sign in to comment.