diff --git a/CHANGELOG.md b/CHANGELOG.md index 00fb976596..da49eaa4b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ * Initial release. * DEPENDENCIES * Updated MSCloudLoginAssistant to version 1.0.121. +* TestHarness.psm1 + * Added code around DscTestsPath parameter to target a single test file during development # 1.23.927.1 diff --git a/Tests/TestHarness.psm1 b/Tests/TestHarness.psm1 index 0d93e4c7f9..bcfbdc4cb9 100644 --- a/Tests/TestHarness.psm1 +++ b/Tests/TestHarness.psm1 @@ -68,10 +68,17 @@ function Invoke-TestHarness $testsToRun += @( $commonTestFiles.FullName ) $filesToExecute = @() - foreach ($testToRun in $testsToRun) - { - $filesToExecute += $testToRun - } + if ($DscTestsPath -ne "") + { + $filesToExecute += $DscTestsPath + } + else + { + foreach ($testToRun in $testsToRun) + { + $filesToExecute += $testToRun + } + } $Params = [ordered]@{ Path = $filesToExecute