You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments','', Justification ='Suppressing this rule because Script Analyzer does not understand Pester syntax.')]
2
+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText','', Justification ='Plain text used only for test credentials in CI.')]
3
+
param ()
4
+
5
+
BeforeDiscovery {
6
+
try
7
+
{
8
+
if (-not (Get-Module-Name 'DscResource.Test'))
9
+
{
10
+
# Assumes dependencies have been resolved, so if this module is not available, run 'noop' task.
11
+
if (-not (Get-Module-Name 'DscResource.Test'-ListAvailable))
12
+
{
13
+
# Redirect all streams to $null, except the error stream (stream 2)
0 commit comments