-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test and release Utilities (#84)
* added test module * added tools * Moved files * updated paths * updated paths * added test data * fixed paths * rem old tests * added ps 6 return * fixed root path * rem local file * rem old files * fixed path * added PS core check
- Loading branch information
Showing
22 changed files
with
3,466 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Cloned modules | ||
DSCResource.Tests | ||
PowerStig.Tests | ||
|
||
# Editors | ||
.vscode/ | ||
.vs/ | ||
|
||
# local preference scripts/utilities | ||
.local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Unit Test Header | ||
$script:moduleSection = Split-Path -Path (Split-Path -Path (Get-PSCallStack)[1].ScriptName -Parent ) -Leaf | ||
$script:projectRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot) | ||
$script:toolsRoot = Join-Path -Path $script:projectRoot -ChildPath 'Tools' | ||
$script:moduleName = (Get-PSCallStack)[1].Command -replace '\.tests\.ps1', '' | ||
|
||
$script:modulePath = "$($script:projectRoot)\$($script:moduleSection)\$script:moduleName\$($script:moduleName).psm1" | ||
|
||
$helperModulePath = Join-Path -Path $script:toolsRoot -ChildPath ( | ||
Join-Path -Path 'TestHelper' -ChildPath 'TestHelper.psm1') | ||
|
||
Import-Module -Name $helperModulePath -Force -Global | ||
Import-Module -Name $script:modulePath -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Unit Test Header | ||
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent ( Split-Path -Parent $PSScriptRoot ) ) | ||
Import-Module (Join-Path -Path $moduleRoot -ChildPath 'Tests\helper.psm1') -Force | ||
Import-Module (Join-Path -Path $moduleRoot -ChildPath 'Tools\TestHelper\TestHelper.psm1') -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.