home.aspx
 
. https://adamtheautomator.com/how-to-deal-with-dependencies-in-your-pester-infrastructure-tests/
blog article
HOW TO DEAL WITH DEPENDENCIES IN YOUR PESTER INFRASTRUCTURE TESTS
When writing Pester infrastructure tests, you'll ultimately run across a common problem; dealing with dependencies. Unlike unit tests, infrastructure tests actually run real code and touch the real environment. A real environment is complicated and full of dependencies on compute, networking, storage, etc. To build a reliable and accurate infrastructure test, it's important to be cognizant of these dependencies and accounts for them in your tests. In this article, we're going to cover two ways to do just that. Test Dependencies. First of all, what a "dependency" anyway? A dependency can mean anything from: a VM being provisioned. a folder that must be created before a file can be placed inside. a domain being available before adding an Active Directory user to it. Everything has some kind of dependency. Thinking of dependencies in this way will make your head spin especially if thought of more granularly like what it takes to render a web page! This means you're going to have to make some tradeoffs. READ MORE