Change test defaults
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user