test new poject intetnal pester dependency workflow

This commit is contained in:
OCram85 2018-03-08 11:31:56 +01:00
parent 64a242c1d3
commit afcfae5130
4 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ Describe "Pre-Flight module tests" {
}
Context "Module consistency tests" {
IT "Importing should work" {
{ Import-Module -Name $ManifestFilePath -Global } | Should -Not -Throw
{ Import-Module -Name $ManifestFilePath -Global -Force }| Should -Not -Throw
}
}
}

View File

@ -16,6 +16,7 @@ Else {
# load additional functions defined in the repository. Replace the expression <FunctionName>.
. (Get-ChildItem -Path $RepoRoot -Filter "Get-ModuleBase.ps1" -Recurse).FullName
. (Get-ChildItem -Path $RepoRoot -Filter "Test-Module.ps1" -Recurse).FullName
#endregion HEADER
Describe "Resolve-Dependency" {

View File

@ -14,7 +14,7 @@ Else {
}
# load additional functions defined in the repository. Replace the expression <FunctionName>.
. (Get-ChildItem -Path $RepoRoot -Filter "Test-CredentialStore.ps1" -Recurse).FullName
#. (Get-ChildItem -Path $RepoRoot -Filter "Test-CredentialStore.ps1" -Recurse).FullName
#endregion HEADER

View File

@ -95,7 +95,7 @@ Function Invoke-AppVeyorTests() {
Details = 'Now running all test found in .\tests\ dir.'
}
Add-AppveyorMessage @MsgParams
$testresults = Invoke-Pester -Path ".\tests\*" -ExcludeTag 'Disabled' -PassThru
$testresults = Invoke-Pester -Path ( Get-ChildItem -Path ".\tests\*.Tests.ps1" -Recurse | Sort-Object -Property Name ) -ExcludeTag 'Disabled' -PassThru
ForEach ($Item in $testresults.TestResult) {
Switch ($Item.Result) {
"Passed" {