Marco Blessing
2422afbd8f
- fix pester test execution order in vscode test task. - fix coveralls.io link in bagde. - skip coverage report creation for PR triggered builds - update docs - Connection type SCP added for `Connect-To` and `Disconnect-From`. ## Internal Changes - pester tests now don't need to dotsource other public functions from the same module (fixes #17 ) - helper and private functions stilll needs to be dotsourced. - basic module tests added - pester tests for `Resolve-Dependency` added - Wrapper function `Get-ModuleBase` added. This enables mocking in tests.
16 lines
537 B
PowerShell
16 lines
537 B
PowerShell
$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
|
|
}
|
|
}
|
|
}
|