Pester documentation says we should not be running any arbitrary code in either Describe, Context or It blocks but how would we then construct the test as some have dependencies? For example, if no Availability Group defined that we should not falling if there is no data in AG tables so in the Describe block, we must run a check for that.
Discovery now takes ~90 seconds even if for a single tag (describe). I suspect that's because it is running all the arbitrary code whilst its discovering?
Pester documentation says we should not be running any arbitrary code in either Describe, Context or It blocks but how would we then construct the test as some have dependencies? For example, if no Availability Group defined that we should not falling if there is no data in AG tables so in the Describe block, we must run a check for that.
Discovery now takes ~90 seconds even if for a single tag (describe). I suspect that's because it is running all the arbitrary code whilst its discovering?