tests/pester.groups.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# this files describes which tests to run on which environment of the build matrix

$TestsRunGroups = @{
    # run on scenario 2008R2
    "2008R2"            = 'autodetect_$script:instance1'
    # run on scenario 2016
    "2016"              = 'autodetect_$script:instance2'
    #run on scenario 2016_service - SQL Server service tests that might disrupt other tests
    "2016_service"      = @(
        'Start-DbaSqlService',
        'Stop-DbaSqlService',
        'Restart-DbaSqlService',
        'Get-DbaSqlService',
        'Update-DbaSqlServiceAccount'
    )
    # do not run on appveyor
    "appveyor_disabled" = @(
        'Get-DbaDatabaseState',
        'Dismount-DbaDatabase'
    )

    # do not run everywhere
    "disabled"          = @()
}