Merge pull request #1011 from PowerShell/andschwa/slow-tests

Skip slow Pester tests
This commit is contained in:
Andy Schwartzmeyer 2016-05-19 15:10:44 -07:00
commit 360998b3e8
3 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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

View file

@ -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" {