Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use Pester to Test Functions in Module

$
0
0

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.


Viewing all articles
Browse latest Browse all 3333

Trending Articles