-
-
Notifications
You must be signed in to change notification settings - Fork 143
A New PR
Rob Sewell edited this page Mar 31, 2018
·
2 revisions
THANK YOU - We love to get PR's and really appreciate your time and help to improve this module
Before we accept the PR - please confirm that you have run the tests locally to avoid our automated build and release process failing.
At the root of your forked repo with the branch with your changes checked out. Run the following code to import the required modules and the required versions into your session
# Get the Module versions
$Modules = Get-ManifestValue -Path .\dbachecks.psd1 -PropertyName RequiredModules
$PesterVersion = $Modules.Where{$_.Get_Item('ModuleName') -eq 'Pester'}[0].Get_Item('ModuleVersion')
$PSFrameworkVersion = $Modules.Where{$_.Get_Item('ModuleName') -eq 'PSFramework'}[0].Get_Item('ModuleVersion')
$dbatoolsVersion = $Modules.Where{$_.Get_Item('ModuleName') -eq 'dbatools'}[0].Get_Item('ModuleVersion')
Import-Module Pester -RequiredVersion $PesterVersion
Import-Module dbatools -RequiredVersion $dbatoolsVersion
Import-Module PSFramework -RequiredVersion $PsFrameworkVersion
Import-Module .\dbachecks.psd1
Then run the Pester Integration tests
Invoke-Pester .\tests -ExcludeTag Integration -Show Fails
Please confirm that you have 0 failed tests