You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recent change in DSCResource.Tests (PowerShell/DscResource.Tests#186) caused the unit tests for the DSCResource.Tests module itself to be executed during the test run in this module.
For non-harness type modules this is being fixed in DSCResource.Tests itself, but for harness type, this must be fixed using this suggested change: dsccommunity/NetworkingDsc#263 (comment)
With these rows, it will not run the test that is failing
if ($PSBoundParameters.ContainsKey('DscTestsPath') -eq$true)
{
$getChildItemParameters=@{
Path=$DscTestsPathRecurse=$trueFilter='*.Tests.ps1'
}
# Get all tests '*.Tests.ps1'.$commonTestFiles=Get-ChildItem@getChildItemParameters# Remove DscResource.Tests unit and integration tests.$commonTestFiles=$commonTestFiles|Where-Object-FilterScript {
$_.FullName-notmatch'DSCResource.Tests\\Tests'
}
$testsToRun+=@( $commonTestFiles.FullName )
}
The text was updated successfully, but these errors were encountered:
A recent change in DSCResource.Tests (PowerShell/DscResource.Tests#186) caused the unit tests for the DSCResource.Tests module itself to be executed during the test run in this module.
For non-harness type modules this is being fixed in DSCResource.Tests itself, but for harness type, this must be fixed using this suggested change:
dsccommunity/NetworkingDsc#263 (comment)
If you replace these rows
https://github.com/PowerShell/xDFS/blob/5593443d031a9179c59880f5cf6629c1c0196ff1/Tests/TestHarness.psm1#L42-L45
With these rows, it will not run the test that is failing
The text was updated successfully, but these errors were encountered: