Skip to content

Commit 9a77c33

Browse files
author
devizer
committed
Module: Brush up tests, 6th
1 parent 5fe33f0 commit 9a77c33

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

Install-SqlServer-Version-Management.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Param(
44
)
55

66
$ModuleName = 'SqlServer-Version-Management';
7-
$ModuleVersion = '2.1.167';
7+
$ModuleVersion = '2.1.168';
88
$ModuleFiles = @(
99
@{
1010
FileName = 'SqlServer-Version-Management\SqlServer-Version-Management.psd1';
@@ -15,7 +15,7 @@ $ModuleFiles = @(
1515
" ModuleToProcess = @('SqlServer-Version-Management.psm1')",
1616
"",
1717
" # Version below is automatically incremented on build",
18-
" ModuleVersion = `"2.1.167`"",
18+
" ModuleVersion = `"2.1.168`"",
1919
"",
2020
" GUID = 'dd03b53d-575a-4056-ae08-e6dfea3384ea'",
2121
"",
@@ -1592,11 +1592,11 @@ $ModuleFiles = @(
15921592
" Say `"vswhere as json`"",
15931593
" Query-VSWhere-as-JSON | Out-Host",
15941594
" Say `"vswhere as json [-all] plus format`"",
1595-
" @(Query-VSWhere-as-JSON `"-all`") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-Host",
1595+
" @(Query-VSWhere-as-JSON `"-all`") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-String -Width 1234 | Out-Host",
15961596
" Say `"vswhere as json [-products * -all] plus format`"",
1597-
" @(Query-VSWhere-as-JSON `"-products`", `"*`", `"-all`") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-Host",
1597+
" @(Query-VSWhere-as-JSON `"-products`", `"*`", `"-all`") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-String -Width 1234 | Out-Host",
15981598
" Say `"vswhere as json [-products * -all -prerelease] plus format`"",
1599-
" @(Query-VSWhere-as-JSON `"-products`", `"*`", `"-all`", `"-prerelease`") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-Host",
1599+
" @(Query-VSWhere-as-JSON `"-products`", `"*`", `"-all`", `"-prerelease`") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-String -Width 1234 | Out-Host",
16001600
"}",
16011601
"",
16021602
"# Demo-Find-VisualStudio-MSBuild",
@@ -1975,7 +1975,7 @@ $ModuleFiles = @(
19751975
" Write-Host `"Setup STARTED Success? `$okStarted`"",
19761976
" `$okCompleted = Wait-For-VisualStudio-Setup-Completed -Timeout (7200*1000)",
19771977
" Write-Host `"Setup FINISHED Success? `$okCompleted`"",
1978-
" Find-VisualStudio-Installed-Products | ft -autosize | out-host",
1978+
" Find-VisualStudio-Installed-Products | ft -autosize | Out-String -Width 1234 | out-host",
19791979
" }",
19801980
"",
19811981
" `$errors = @(`$vsidList | Try-Action-ForEach -ActionTitle `"TEST VISUAL STUDIO SETUP`" -Action `$setupAction -ItemTitle `$setupTitle)",

SqlServer-Version-Management.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,11 +1493,11 @@ function Demo-Query-VSWhere() {
14931493
Say "vswhere as json"
14941494
Query-VSWhere-as-JSON | Out-Host
14951495
Say "vswhere as json [-all] plus format"
1496-
@(Query-VSWhere-as-JSON "-all") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-Host
1496+
@(Query-VSWhere-as-JSON "-all") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-String -Width 1234 | Out-Host
14971497
Say "vswhere as json [-products * -all] plus format"
1498-
@(Query-VSWhere-as-JSON "-products", "*", "-all") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-Host
1498+
@(Query-VSWhere-as-JSON "-products", "*", "-all") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-String -Width 1234 | Out-Host
14991499
Say "vswhere as json [-products * -all -prerelease] plus format"
1500-
@(Query-VSWhere-as-JSON "-products", "*", "-all", "-prerelease") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-Host
1500+
@(Query-VSWhere-as-JSON "-products", "*", "-all", "-prerelease") | Select-Object -Property Year, Edition, Version, InstallationVersion, DisplayName, ProductId, InstallationPath | ft -autosize | Out-String -Width 1234 | Out-Host
15011501
}
15021502

15031503
# Demo-Find-VisualStudio-MSBuild
@@ -1876,7 +1876,7 @@ function Test-Setup-VisualStudio([string] $kind = "Basic Components" <# or Mini
18761876
Write-Host "Setup STARTED Success? $okStarted"
18771877
$okCompleted = Wait-For-VisualStudio-Setup-Completed -Timeout (7200*1000)
18781878
Write-Host "Setup FINISHED Success? $okCompleted"
1879-
Find-VisualStudio-Installed-Products | ft -autosize | out-host
1879+
Find-VisualStudio-Installed-Products | ft -autosize | Out-String -Width 1234 | out-host
18801880
}
18811881

18821882
$errors = @($vsidList | Try-Action-ForEach -ActionTitle "TEST VISUAL STUDIO SETUP" -Action $setupAction -ItemTitle $setupTitle)

0 commit comments

Comments
 (0)