Change test defaults

This commit is contained in:
Kevin Marquette
2018-07-14 17:19:46 -07:00
parent d26917f9af
commit 0a2b90079d
2 changed files with 5 additions and 5 deletions

View File

@@ -10,11 +10,11 @@ Describe "Public commands have comment-based or external help" -Tags 'Build' {
foreach ($node in $help) foreach ($node in $help)
{ {
Context $node.Name { 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 ($node.Description + $node.Synopsis) | Should Not BeNullOrEmpty
} }
It "Should have an Example" -Pending { It "Should have an Example" {
$node.Examples | Should Not BeNullOrEmpty $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') 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 $parameter.Description.Text | Should Not BeNullOrEmpty
} }
} }

View File

@@ -15,7 +15,7 @@ Describe "All commands pass PSScriptAnalyzer rules" -Tag 'Build' {
{ {
foreach ($rule in $results) foreach ($rule in $results)
{ {
It $rule.RuleName -Pending { It $rule.RuleName {
$message = "{0} Line {1}: {2}" -f $rule.Severity, $rule.Line, $rule.Message $message = "{0} Line {1}: {2}" -f $rule.Severity, $rule.Line, $rule.Message
$message | Should Be "" $message | Should Be ""
} }
@@ -37,7 +37,7 @@ Describe "Public commands have Pester tests" -Tag 'Build' {
foreach ($command in $commands.Name) foreach ($command in $commands.Name)
{ {
$file = Get-ChildItem -Path "$ModuleRoot\Tests" -Include "$command.Tests.ps1" -Recurse $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 $file.FullName | Should Not BeNullOrEmpty
} }
} }