diff --git a/build.psm1 b/build.psm1 index 05ffa606f..8b8e4fb72 100644 --- a/build.psm1 +++ b/build.psm1 @@ -311,7 +311,7 @@ function Get-PSOutput { function Start-PSPester { [CmdletBinding()]param( - [string]$Flags = '-EnableExit -OutputFile pester-tests.xml -OutputFormat NUnitXml', + [string]$Flags = "-ExcludeTag 'Slow' -EnableExit -OutputFile pester-tests.xml -OutputFormat NUnitXml", [string]$Tests = "*", [ValidateScript({ Test-Path -PathType Container $_})] [string]$Directory = "$PSScriptRoot/test/powershell" diff --git a/docs/cmdlet-example/SendGreeting.Tests.ps1 b/docs/cmdlet-example/SendGreeting.Tests.ps1 index 2537d3fa6..1379cb60f 100644 --- a/docs/cmdlet-example/SendGreeting.Tests.ps1 +++ b/docs/cmdlet-example/SendGreeting.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Send-Greeting cmdlet" { +Describe "Send-Greeting cmdlet" -Tag 'Slow' { It "Should be able build the cmdlet" { Remove-Item -Recurse -Force bin -ErrorAction SilentlyContinue dotnet restore --verbosity Error | Should BeNullOrEmpty diff --git a/test/powershell/ConsoleHost.Tests.ps1 b/test/powershell/ConsoleHost.Tests.ps1 index d5f18a07d..94b0b25a0 100644 --- a/test/powershell/ConsoleHost.Tests.ps1 +++ b/test/powershell/ConsoleHost.Tests.ps1 @@ -1,6 +1,6 @@ using namespace System.Diagnostics -Describe "ConsoleHost unit tests" { +Describe "ConsoleHost unit tests" -Tag 'Slow' { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" Context "CommandLine" {