Merge pull request 60 from dev/95-get-pester-running into develop
This commit is contained in:
commit
b96f4264e2
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -16,3 +16,6 @@
|
|||
[submodule "src/monad_app_base"]
|
||||
path = src/monad_app_base
|
||||
url = https://msostc.visualstudio.com/DefaultCollection/PS/_git/monad_app_base
|
||||
[submodule "ext-src/pester"]
|
||||
path = ext-src/pester
|
||||
url = mshttps://msostc.visualstudio.com/DefaultCollection/PS/_git/Pester
|
||||
|
|
1
ext-src/pester
Submodule
1
ext-src/pester
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 941efb9fbfb56c0ffa5470b150dc7ca9c2ab350b
|
|
@ -150,6 +150,7 @@ internal-prepare-exec_env: runps.sh
|
|||
cp -r dotnetlibs/*.exe exec_env/app_base
|
||||
cp -r dotnetlibs/lib* exec_env/app_base
|
||||
cp -r dotnetlibs/corerun exec_env/app_base
|
||||
cp -r ../ext-src/pester exec_env/app_base/Modules/Pester
|
||||
cp runps.sh exec_env/app_base
|
||||
|
||||
run: $(POWERSHELL_RUN_TARGETS) dotnetlibs/corerun dotnetlibs/Microsoft.PowerShell.Commands.Management.dll dotnetlibs/Microsoft.PowerShell.Commands.Utility.dll dotnetlibs/Microsoft.PowerShell.Security.dll dotnetlibs/api-ms-win-core-registry-l1-1-0.dll internal-prepare-exec_env
|
||||
|
|
13
scripts/pester/Get-HelloWorld.Tests.ps1
Normal file
13
scripts/pester/Get-HelloWorld.Tests.ps1
Normal file
|
@ -0,0 +1,13 @@
|
|||
"starting test script" | out-host
|
||||
|
||||
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$here | out-host
|
||||
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
|
||||
$sut | out-host
|
||||
. "$here\$sut"
|
||||
|
||||
Describe "Get-HelloWorld" {
|
||||
It "outputs 'Hello world!'" {
|
||||
Get-HelloWorld | Should Be 'Hello world!'
|
||||
}
|
||||
}
|
3
scripts/pester/Get-HelloWorld.ps1
Normal file
3
scripts/pester/Get-HelloWorld.ps1
Normal file
|
@ -0,0 +1,3 @@
|
|||
function Get-HelloWorld {
|
||||
'Hello world!'
|
||||
}
|
|
@ -1 +1 @@
|
|||
Subproject commit 2ba6fb9291bdb9bfea111369a6c236475bd3c686
|
||||
Subproject commit 09cd9551a2caebecc843b84e01aad7126ed7197a
|
Loading…
Reference in a new issue