Skip to content

Commit

Permalink
Add VmPath to test exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanhp committed Jun 10, 2021
1 parent bafcbd9 commit 0635c80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/Integration/Get-LabConfigurationItem.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
}

$functionCalls = (Get-ChildItem -Path "$rootpath\..\.." -Recurse -Filter *.ps*1 | Select-String -Pattern 'Get-LabConfigurationItem -Name [\w\.-]+').Matches.Value | Sort-Object -Unique
$skippedCalls = @('Sql', 'LabSourcesLocation')

# LabSourcesLocation and VmPath are user-defined and just pre-initialized with $null
$skippedCalls = @('Sql', 'LabSourcesLocation', 'VmPath')
$testCases = foreach ($call in $functionCalls)
{
if ($call -notmatch '-Name\s(?<Name>[\w\.-]+)') { continue }
Expand Down

0 comments on commit 0635c80

Please sign in to comment.