From 9a5693d51c964f47d56b6ec6ca7c4c8cc5149b9f Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 29 Jun 2022 13:35:33 +0200 Subject: [PATCH] wip --- src/Store/New-CredentialStore.Tests.ps1 | 1 + tests/.gitkeep | 0 tests/00_BasicModule.Tests.ps1 | 17 ----------------- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 tests/.gitkeep delete mode 100644 tests/00_BasicModule.Tests.ps1 diff --git a/src/Store/New-CredentialStore.Tests.ps1 b/src/Store/New-CredentialStore.Tests.ps1 index 7180661..8473eaf 100644 --- a/src/Store/New-CredentialStore.Tests.ps1 +++ b/src/Store/New-CredentialStore.Tests.ps1 @@ -9,6 +9,7 @@ BeforeAll { foreach ( $func in $PrivateFunctions) { . $func } + # Backup existing credential stores $VerbosePreference = "Continue" Write-Verbose "Backup private Credential Store..." diff --git a/tests/.gitkeep b/tests/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/tests/00_BasicModule.Tests.ps1 b/tests/00_BasicModule.Tests.ps1 deleted file mode 100644 index 6c846ad..0000000 --- a/tests/00_BasicModule.Tests.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -$RepoRoot = (Get-Item -Path (Get-GitDirectory) -Force).Parent | Select-Object -ExpandProperty 'FullName' -Write-Verbose -Message ('RepoRoot: {0}' -f $RepoRoot) -Verbose - -$ManifestFilePath = Join-Path -Path $RepoRoot -ChildPath '/src/PSCredentialStore.psd1' -Write-Verbose -Message ("ManifestFilePath: {0}" -f $ManifestFilePath) -Verbose -Describe "Pre-Flight module tests" { - Context "Manifest file related" { - It "Test the parsed file itself" { - { Test-ModuleManifest -Path $ManifestFilePath -Verbose } | Should -Not -Throw - } - } - Context "Module consistency tests" { - It "Importing should work" { - { Import-Module -Name $ManifestFilePath -Global -Force -Verbose } | Should -Not -Throw - } - } -}