PSCredentialStore/tests/00_BasicModule.Tests.ps1

16 lines
537 B
PowerShell
Raw Normal View History

2018-03-08 11:04:58 +01:00
$RepoRoot = (Get-GitDirectory).replace('\.git', '')
Describe "Pre-Flight module tests" {
$ManifestFilePath = "{0}\src\PSCredentialstore.psd1" -f $RepoRoot
Context "Manifest file related" {
It "Test the parsed file itsef" {
{ Test-ModuleManifest -Path $ManifestFilePath } | Should -Not -Throw
}
}
Context "Module consistency tests" {
IT "Importing should work" {
{ Import-Module -Name $ManifestFilePath -Global -Force }| Should -Not -Throw
2018-03-08 11:04:58 +01:00
}
}
}