December 17th, 2015

PowerTip: Use Pester to Test Functions in Module

Doctor Scripto
Scripter

Summary: Use Pester to test new functions in your module.

Hey, Scripting Guy! Question How can I unit test a non-exported function in my script module?

Hey, Scripting Guy! Answer Use the InModuleScope command to execute some or all of your Pester script within the scope of
           the module you’re testing.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.