Skip to content

Commit 5d8b9db

Browse files
lowlydbaJohn McCallAppveyor
authored
Tests for sp_estindex (#150)
* Create sp_predindex.sql * alpha version of sp_estindex * fix linting error * more md linting fixes * Update sp_estindex.md * mvp version * add extended properties * use label for repeatable code block * update docs * Update sp_estindex.md * Update sp_estindex.md * add sp_estindex * alphabetize scripts * CI produced files * update .gitattributes * encode file to utf8 * unit test stub * CI produced files * fix index drop for < 2016 sql * CI produced files * remove drop if * CI produced files * actually remove if * CI produced files * fix tsqllint errors * CI produced files * force build error for lint error * build tests for sp_estindex * add verbose mode test * increase test cov for sp_estindex to 100% * Update sp_estindex_tests.sql * formatting * CI produced files * @verbose documentation * remove spt usage for azure compatibility * CI produced files Co-authored-by: John McCall <[email protected]> Co-authored-by: Appveyor <[email protected]>
1 parent 699bc2b commit 5d8b9db

File tree

11 files changed

+1784
-728
lines changed

11 files changed

+1784
-728
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.markdownlint.json
22
node_modules/*
33
package-lock.json
4+
debug.log

appveyor/build_tsqlt_tests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ param(
99
$Color = "Green"
1010
)
1111

12+
$ErrorActionPreference = "Stop"
13+
1214
Write-Host "Building tSQLt Tests..." -ForegroundColor $Color
1315

1416
If ($IsAzureSQL) {

appveyor/install_dependencies.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ Write-Host "Installing dependencies..." -ForegroundColor $Color
77

88
# TSQLLinter
99
# Try/Catch to stop appveyor unnecessary errors
10-
Try { npm install tsqllint -g | Out-Null }
11-
Catch { }
10+
$result = npm list -g --depth=0
11+
If (-Not ($result -Match "tsqllint")) {
12+
npm install tsqllint -g | Out-Null
13+
}
1214

1315
# SQLServer Module
1416
if (!(Get-Module -ListAvailable -Name SqlServer)) {
1517
Install-Module SqlServer -Force -AllowClobber
1618
}
1719

1820
# DbaTools Module
19-
Install-Module DbaTools -Force -AllowClobber
21+
if (!(Get-Module -ListAvailable -Name DbaTools)) {
22+
Install-Module DbaTools -Force -AllowClobber
23+
}

appveyor/sqlcover/Coverage.opencoverxml

Lines changed: 527 additions & 453 deletions
Large diffs are not rendered by default.

appveyor/sqlcover/Run_SQLCover.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ If ($IsCoverStarted) {
5252
$tmpFile = Join-Path $env:TEMP "Coverage.html"
5353
Set-Content -Path $tmpFile -Value $coverageResults.Html2() -Force
5454
Invoke-Item $tmpFile
55-
Start-Sleep -Seconds 1
55+
Start-Sleep -Seconds 3
5656
Remove-Item $tmpFile
5757
}
5858
}

0 commit comments

Comments
 (0)