From c8903f80b2e4c75e2222550e6903829864328cf7 Mon Sep 17 00:00:00 2001 From: Yanbing Date: Fri, 17 Mar 2017 12:37:51 -0700 Subject: [PATCH] Updated Run OpenSSH Pester Tests (markdown) --- Run-OpenSSH-Pester-Tests.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Run-OpenSSH-Pester-Tests.md b/Run-OpenSSH-Pester-Tests.md index f80aa16..c76a36a 100644 --- a/Run-OpenSSH-Pester-Tests.md +++ b/Run-OpenSSH-Pester-Tests.md @@ -7,12 +7,14 @@ Install-OpenSSH -OpenSSHDir $env:SystemDrive\OpenSSH -Configuration Debug -Nativ ## Run OpenSSH Pester Tests: - Deploy OpenSSH tests ```powershell +Import-Module .\openssh-portable\contrib\win32\openssh\appveyor.psm1 –Force Install-TestDependencies Deploy-OpenSSHTests -OpenSSHTestDir $env:SystemDrive\OpenSSH -Configuration Debug -NativeHostArch x64 ``` - Run pester tests : Launch powershell core windows (for example at **"$env:ProgramFiles\PowerShell\6.0.0.12\powershell.exe"**) and run the below command: ```powershell cd $env:SystemDrive\OpenSSH +Import-Module .\openssh-portable\contrib\win32\openssh\appveyor.psm1 –Force Run-OpenSSHPesterTest –testRoot $env:SystemDrive\OpenSSH -outputXml testresult.xml ``` Note: If you want to run a particular test, skip step 3 and just launch it: