From 362a807438ee09619ecdc1fd61602eb038a461f6 Mon Sep 17 00:00:00 2001 From: James Truher Date: Mon, 25 Jul 2016 14:03:17 -0700 Subject: [PATCH] Add changes to build.psm1 to run only CI tests --- build.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.psm1 b/build.psm1 index bf4eaf4088..101fb8b007 100644 --- a/build.psm1 +++ b/build.psm1 @@ -467,11 +467,11 @@ function Get-PSOutput { function Start-PSPester { [CmdletBinding()]param( - [string]$Flags = "-ExcludeTag 'Slow' -EnableExit -OutputFile pester-tests.xml -OutputFormat NUnitXml", + [string]$Flags = "-ExcludeTag 'Slow' -Tag 'CI' -EnableExit -OutputFile pester-tests.xml -OutputFormat NUnitXml", [string]$Path = "$PSScriptRoot/test/powershell" ) - & (Get-PSOutput) -noprofile -c "Import-Module '$PSScriptRoot/src/Modules/Shared/Pester'; Invoke-Pester $Flags $Path" + & (Get-PSOutput) -noprofile -c "Import-Module '$PSHOME/Modules/Pester'; Invoke-Pester $Flags $Path" if ($LASTEXITCODE -ne 0) { throw "$LASTEXITCODE Pester tests failed" }