Restore-TestEnvironment remains PSModulePath added by Initialize-TestEnvironment #70

guitarrapc opened this Issue Jul 30, 2016 · 0 comments


None yet

2 participants


Description of Issue

Restore-TestEnvironment could not handle Initialize-TestEnvironment added path.


Initialize-TestEnvironment adding current Test DSC Module's Root Path, which retrieved at here, to the Machine's PSmodulePath at

It's trying to pass $OldModulePath info, but ModuleRoot is remain afterRestore-TestEnvironment has ran.


Should completely remove Test Module Path from PSModulePath.

@kwirkykat kwirkykat added the bug label Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment