BeforeAll { $Repo = Get-RepoPath Import-Module $Repo.Src.Manifest.Item.FullName -Force } Describe 'New-BuildPackage' { Context 'Default tests' -Tag 'Default' { It 'Test Function' { { Get-Command -Name 'New-BuildPackage' -Module $Repo.Artifact } | Should -Not -Throw } It 'Test Help' { { Get-Help -Name 'New-BuildPackage' } | Should -Not -Throw } It 'Help Content' { $foo = Get-Help -Name 'New-BuildPackage' $foo.Synopsis.Length | Should -BeGreaterThan 5 $foo.Description.Count | Should -BeGreaterOrEqual 1 $foo.Description[0].Text.Length | Should -BeGreaterThan 5 } } }