diff --git a/src/PSModule.Tests.ps1 b/src/PSModule.Tests.ps1 index 2338087..34dc6e4 100644 --- a/src/PSModule.Tests.ps1 +++ b/src/PSModule.Tests.ps1 @@ -1,14 +1,12 @@ Describe 'Test module meta' { - It 'Test manifest file' { - $ManifestFile = (Get-Item -Path "./src/*.psd1").FullName - Test-ModuleManifest -Path $ManifestFile | Should -Be $true + Context 'Default tests' -Tag 'Default' { + It 'Test manifest file' { + $ManifestFile = (Get-Item -Path "./src/*.psd1").FullName + Test-ModuleManifest -Path $ManifestFile | Should -Be $true + } + It 'Import Module' { + $ManifestFile = (Get-Item -Path "./src/*.psd1").FullName + { Import-Module $ManifestFile } | Should -Not -Throw + } } - It 'Import Module' { - $ManifestFile = (Get-Item -Path "./src/*.psd1").FullName - { Import-Module $ManifestFile } | Should -Not -Throw - } - # Dummy test to force pester error - #It 'Force Pester Error' { - # $true | Should -BeFalse - #} }