Merge pull request 60 from dev/95-get-pester-running into develop

This commit is contained in:
Peter Honeder
2015-07-13 18:19:35 +00:00
6 changed files with 22 additions and 1 deletions
+3
View File
@@ -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
Submodule ext-src/pester added at 941efb9fbf
+1
View File
@@ -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
View 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
View File
@@ -0,0 +1,3 @@
function Get-HelloWorld {
'Hello world!'
}