Initial
This commit is contained in:
19
tests/Feature.Tests.ps1
Normal file
19
tests/Feature.Tests.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
$script:ModuleName = 'Chocolatey-tools'
|
||||
|
||||
# Removes all versions of the module from the session before importing
|
||||
Get-Module $ModuleName | Remove-Module
|
||||
|
||||
$ModuleBase = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
|
||||
# For tests in .\Tests subdirectory
|
||||
if ((Split-Path $ModuleBase -Leaf) -eq 'Tests') {
|
||||
$ModuleBase = Split-Path $ModuleBase -Parent
|
||||
}
|
||||
|
||||
## This variable is for the VSTS tasks and is to be used for referencing any mock artifacts
|
||||
$Env:ModuleBase = $ModuleBase
|
||||
|
||||
Import-Module $ModuleBase\$ModuleName.psd1 -PassThru -ErrorAction Stop | Out-Null
|
||||
Describe "Basic function feature tests" -Tags Build {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user