diff --git a/Tests/Project/Help.Tests.ps1 b/Tests/Project/Help.Tests.ps1 index 2ec5c0f..bf08337 100644 --- a/Tests/Project/Help.Tests.ps1 +++ b/Tests/Project/Help.Tests.ps1 @@ -10,11 +10,11 @@ Describe "Public commands have comment-based or external help" -Tags 'Build' { foreach ($node in $help) { Context $node.Name { - It "Should have a Description or Synopsis" -Pending { + It "Should have a Description or Synopsis" { ($node.Description + $node.Synopsis) | Should Not BeNullOrEmpty } - It "Should have an Example" -Pending { + It "Should have an Example" { $node.Examples | Should Not BeNullOrEmpty } @@ -22,7 +22,7 @@ Describe "Public commands have comment-based or external help" -Tags 'Build' { { if ($parameter -notmatch 'WhatIf|Confirm') { - It "Should have a Description for Parameter [$($parameter.Name)]" -Pending { + It "Should have a Description for Parameter [$($parameter.Name)]" { $parameter.Description.Text | Should Not BeNullOrEmpty } } diff --git a/Tests/Project/Module.Tests.ps1 b/Tests/Project/Module.Tests.ps1 index 8a75a66..87344c4 100644 --- a/Tests/Project/Module.Tests.ps1 +++ b/Tests/Project/Module.Tests.ps1 @@ -15,7 +15,7 @@ Describe "All commands pass PSScriptAnalyzer rules" -Tag 'Build' { { foreach ($rule in $results) { - It $rule.RuleName -Pending { + It $rule.RuleName { $message = "{0} Line {1}: {2}" -f $rule.Severity, $rule.Line, $rule.Message $message | Should Be "" } @@ -37,7 +37,7 @@ Describe "Public commands have Pester tests" -Tag 'Build' { foreach ($command in $commands.Name) { $file = Get-ChildItem -Path "$ModuleRoot\Tests" -Include "$command.Tests.ps1" -Recurse - It "Should have a Pester test for [$command]" -Skip:($null -eq $file) { + It "Should have a Pester test for [$command]" { $file.FullName | Should Not BeNullOrEmpty } }