Skip to content

Commit

Permalink
so that I can see th etext for Pester for Jakub
Browse files Browse the repository at this point in the history
  • Loading branch information
SQLDBAWithABeard committed Apr 5, 2023
1 parent a8c24d8 commit efe48f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion containers/JessAndBeard.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,7 @@ function Invoke-PerfAndValidateCheck {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingCmdletAliases', 'cls', Justification = 'Dont tell me what to do')]
[CmdletBinding()]
param($Checks, [switch]$PerfDetail , [switch]$showTestResults)
$SQLInstances = $dbachecks1, $dbachecks2, $dbachecks3 = 'dbachecks1', 'dbachecks2', 'dbachecks3'

This comment has been minimized.

Copy link
@jpomfret

jpomfret Apr 12, 2023

Collaborator

when @SQLDBAWithABeard broke it 🔥

This should fix it - you're overwriting the $SqlInstances variable in the session, so this depends on having client aliases set up for dbachecks1 etc names.

627a639

$password = ConvertTo-SecureString "dbatools.IO" -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "sqladmin", $password
if ($showTestResults) {
Expand Down Expand Up @@ -2434,7 +2435,7 @@ The Total Tests Skipped are the same {0} {1}
$message = "
Let's take a look at the slowest code as well "
Write-PSFMessage -Message $Message -Level Output
$NewCodetrace.Top50SelfDuration| Select SelfPercent,HitCount,Line,Function }
$NewCodetrace.Top50SelfDuration| Select SelfPercent,HitCount,Line,Function, Text }
}

Set-PSFConfig -Module JessAndBeard -Name shallweplayagame -Value $true -Initialize -Description "Whether to ask or not" -ModuleExport

0 comments on commit efe48f3

Please sign in to comment.