PwshSQLiteCmd-Basic.Tests.ps1
BeforeAll{ $currentTestModuleName=([System.IO.FileInfo]$PSCommandPath).Name.Replace(".Tests.ps1","") $env:PSModulePath=(Resolve-Path "$PSScriptRoot/..").Path+[IO.Path]::PathSeparator+$env:PSModulePath $moduleManifestFile=Import-PowerShellDataFile "$PSScriptRoot/$currentTestModuleName.psd1" # install dependency modules $moduleManifestFile.RequiredModules|Foreach-Object{ if(-not (Get-Module $_)){ # install them Install-Module $_ -Force Update-Module $_ } } Import-Module $currentTestModuleName -Force } |