diff --git a/test/powershell/Host/Base-Directory.Tests.ps1 b/test/powershell/Host/Base-Directory.Tests.ps1 index 5fb9bbbf21..df3b652173 100644 --- a/test/powershell/Host/Base-Directory.Tests.ps1 +++ b/test/powershell/Host/Base-Directory.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Configuration file locations" { +Describe "Configuration file locations" -tags "CI" { BeforeAll { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" diff --git a/test/powershell/Host/ConsoleHost.Tests.ps1 b/test/powershell/Host/ConsoleHost.Tests.ps1 index 94e66c6d92..a83e847654 100644 --- a/test/powershell/Host/ConsoleHost.Tests.ps1 +++ b/test/powershell/Host/ConsoleHost.Tests.ps1 @@ -1,6 +1,6 @@ using namespace System.Diagnostics -Describe "ConsoleHost unit tests" { +Describe "ConsoleHost unit tests" -tags "Feature" { BeforeAll { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" diff --git a/test/powershell/Host/PSVersionTable.Tests.ps1 b/test/powershell/Host/PSVersionTable.Tests.ps1 index cd3367a704..880fd241b4 100644 --- a/test/powershell/Host/PSVersionTable.Tests.ps1 +++ b/test/powershell/Host/PSVersionTable.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "PSVersionTable" { +Describe "PSVersionTable" -Tags "CI" { It "Should have version table entries" { $PSVersionTable.Count | Should Be 9 } diff --git a/test/powershell/Host/Read-Host.Tests.ps1 b/test/powershell/Host/Read-Host.Tests.ps1 index 847198154a..55b262f851 100644 --- a/test/powershell/Host/Read-Host.Tests.ps1 +++ b/test/powershell/Host/Read-Host.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Read-Host" { +Describe "Read-Host" -Tags "CI" { Context "[Console]::ReadKey() implementation on non-Windows" { BeforeAll { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" diff --git a/test/powershell/Host/TabCompletion/BugFix.Tests.ps1 b/test/powershell/Host/TabCompletion/BugFix.Tests.ps1 index 18a64f7827..28b50ccb7e 100644 --- a/test/powershell/Host/TabCompletion/BugFix.Tests.ps1 +++ b/test/powershell/Host/TabCompletion/BugFix.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Issue#682 - [system.manage] should work" { +Describe "Issue#682 - [system.manage] should work" -Tags "CI" { It "[system.manage" { $result = TabExpansion2 -inputScript "[system.manage" -cursorColumn "[system.manage".Length diff --git a/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1 index d9e1f8f740..ac1dc3ac53 100644 --- a/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1 +++ b/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1 @@ -1,4 +1,4 @@ -Describe 'Break statements with classes' -Tags "DRT" { +Describe 'Break statements with classes' -Tags "CI" { function Get-Errors([string]$sourceCode) { $tokens = $null diff --git a/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1 index 539e90d182..ca772f553e 100644 --- a/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1 +++ b/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1 @@ -224,7 +224,7 @@ $canaryHashtable['canary'] += 100 } } -Describe "Exception error position" -Tags "DRT" { +Describe "Exception error position" -Tags "CI" { class MSFT_3090412 { static f1() { [MSFT_3090412]::bar = 42 } diff --git a/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1 index 45b4efdf40..ee798cf120 100644 --- a/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1 +++ b/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1 @@ -1,4 +1,4 @@ -Describe 'Misc Test' -Tags "innerloop", "DRT" { +Describe 'Misc Test' -Tags "CI" { Context 'Where' { class C1 { @@ -43,4 +43,4 @@ Describe 'Misc Test' -Tags "innerloop", "DRT" { [C1]::new().Bar() | should be "1;2;3;" } } -} \ No newline at end of file +} diff --git a/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1 index 16f5d0ae61..5caca7d220 100644 --- a/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1 +++ b/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1 @@ -1,11 +1,11 @@ -Describe 'PSModuleInfo.GetExportedTypeDefinitions()' { +Describe 'PSModuleInfo.GetExportedTypeDefinitions()' -Tags "CI" { It "doesn't throw for any module" { $discard = Get-Module -ListAvailable | % { $_.GetExportedTypeDefinitions() } $true | Should Be $true # we only verify that we didn't throw. This line contains a dummy Should to make pester happy. } } -Describe 'use of a module from two runspaces' { +Describe 'use of a module from two runspaces' -Tags "CI" { function New-TestModule { param( [string]$Name, diff --git a/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1 b/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1 index fec7fc7c5d..86ae42c120 100644 --- a/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1 +++ b/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1 @@ -1,4 +1,4 @@ -Describe 'NestedModules' -Tags "DRT" { +Describe 'NestedModules' -Tags "CI" { Import-Module $PSScriptRoot\..\LanguageTestSupport.psm1 diff --git a/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1 b/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1 index 5941314a09..a2aedb73a4 100644 --- a/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1 +++ b/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1 @@ -4,7 +4,7 @@ Import-Module $PSScriptRoot\..\LanguageTestSupport.psm1 -Describe 'Classes inheritance syntax' -Tags "DRT" { +Describe 'Classes inheritance syntax' -Tags "CI" { It 'Base types' { class C1 {} diff --git a/test/powershell/Language/Classes/scripting.enums.tests.ps1 b/test/powershell/Language/Classes/scripting.enums.tests.ps1 index 88258d620b..05a7430ae4 100644 --- a/test/powershell/Language/Classes/scripting.enums.tests.ps1 +++ b/test/powershell/Language/Classes/scripting.enums.tests.ps1 @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation, 2015 # -Describe 'enums' -Tags "DRT" { +Describe 'enums' -Tags "CI" { Context 'basic enums' { enum E1 diff --git a/test/powershell/Language/Interop/DotNet/DotNetAPI.Tests.ps1 b/test/powershell/Language/Interop/DotNet/DotNetAPI.Tests.ps1 index 19f885dccd..98cf049895 100644 --- a/test/powershell/Language/Interop/DotNet/DotNetAPI.Tests.ps1 +++ b/test/powershell/Language/Interop/DotNet/DotNetAPI.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "DotNetAPI" { +Describe "DotNetAPI" -Tags "CI" { $posh_E = 2.718281828459045 $posh_pi = 3.14159265358979 diff --git a/test/powershell/Language/Interop/DotNet/DotNetInterop.Tests.ps1 b/test/powershell/Language/Interop/DotNet/DotNetInterop.Tests.ps1 index efdfc57eee..b8a609008f 100644 --- a/test/powershell/Language/Interop/DotNet/DotNetInterop.Tests.ps1 +++ b/test/powershell/Language/Interop/DotNet/DotNetInterop.Tests.ps1 @@ -1,4 +1,4 @@ -Describe ".NET class interoperability" { +Describe ".NET class interoperability" -Tags "CI" { It "Should access types in System.Console" { [System.Console]::TreatControlCAsInput | Should Be $false } diff --git a/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1 b/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1 index ce7f356014..acc247a992 100644 --- a/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1 +++ b/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "ComparisonOperator" { +Describe "ComparisonOperator" -tag "CI" { It "Should be $true for 1 -lt 2" { 1 -lt 2 | Should Be $true } diff --git a/test/powershell/Language/Parser/Ast.Tests.ps1 b/test/powershell/Language/Parser/Ast.Tests.ps1 index f220ef3621..fa3341c97e 100644 --- a/test/powershell/Language/Parser/Ast.Tests.ps1 +++ b/test/powershell/Language/Parser/Ast.Tests.ps1 @@ -1,5 +1,5 @@ using Namespace System.Management.Automation.Language -Describe "The SafeGetValue method on AST returns safe values" -Tags "DRT" { +Describe "The SafeGetValue method on AST returns safe values" -Tags "CI" { It "A hashtable is returned from a HashtableAst" { $HashtableAstType = [HashtableAst] $HtAst = { diff --git a/test/powershell/Language/Parser/AutomaticVariables.Tests.ps1 b/test/powershell/Language/Parser/AutomaticVariables.Tests.ps1 index 0912e22064..ee6a57f6ff 100644 --- a/test/powershell/Language/Parser/AutomaticVariables.Tests.ps1 +++ b/test/powershell/Language/Parser/AutomaticVariables.Tests.ps1 @@ -1,5 +1,5 @@ -Describe 'Automatic variable $input' { +Describe 'Automatic variable $input' -Tags "CI" { It '$input Type should be enumerator' { function from_begin { [cmdletbinding()]param() begin { Write-Output -NoEnumerate $input } } function from_process { [cmdletbinding()]param() process { Write-Output -NoEnumerate $input } } diff --git a/test/powershell/Language/Parser/BNotOperator.Tests.ps1 b/test/powershell/Language/Parser/BNotOperator.Tests.ps1 index 8e5c4be661..79475e58ee 100644 --- a/test/powershell/Language/Parser/BNotOperator.Tests.ps1 +++ b/test/powershell/Language/Parser/BNotOperator.Tests.ps1 @@ -32,7 +32,7 @@ $typeDefinition += "`n}" Write-Verbose $typeDefinition Add-Type $typeDefinition -Describe "bnot on enums" -Tags "DRT" { +Describe "bnot on enums" -Tags "CI" { foreach ($enumType in [type[]]$enumTypeNames) { Context $enumType.Name { @@ -63,7 +63,7 @@ Describe "bnot on enums" -Tags "DRT" { } } -Describe "bnot on integral types" -Tags "DRT" { +Describe "bnot on integral types" -Tags "CI" { foreach ($baseType in $baseTypes.Keys) { Context $baseType.Name { diff --git a/test/powershell/Language/Parser/Conversions.Tests.ps1 b/test/powershell/Language/Parser/Conversions.Tests.ps1 index 593ba42815..1b6bc63f1e 100644 --- a/test/powershell/Language/Parser/Conversions.Tests.ps1 +++ b/test/powershell/Language/Parser/Conversions.Tests.ps1 @@ -1,4 +1,4 @@ -Describe 'conversion syntax' -Tags "innerloop", "DRT" { +Describe 'conversion syntax' -Tags "CI" { # these test suite covers ([]).() syntax. # it mixes two purposes: casting and super-class method calls. diff --git a/test/powershell/Language/Parser/RedirectionOperator.Tests.ps1 b/test/powershell/Language/Parser/RedirectionOperator.Tests.ps1 index 08aa7da260..82a79fb7b6 100644 --- a/test/powershell/Language/Parser/RedirectionOperator.Tests.ps1 +++ b/test/powershell/Language/Parser/RedirectionOperator.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Redirection operator now supports encoding changes" { +Describe "Redirection operator now supports encoding changes" -Tags "CI" { BeforeAll { $asciiString = "abc" diff --git a/test/powershell/Language/Parser/TypeAccelerator.Tests.ps1 b/test/powershell/Language/Parser/TypeAccelerator.Tests.ps1 index ad70df72ef..8e8c5744d7 100644 --- a/test/powershell/Language/Parser/TypeAccelerator.Tests.ps1 +++ b/test/powershell/Language/Parser/TypeAccelerator.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "Type accelerators" -Tags "DRT" { +Describe "Type accelerators" -Tags "CI" { $TypeAcceleratorsType = [psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators") $TypeAccelerators = $TypeAcceleratorsType::Get diff --git a/test/powershell/Language/Parser/UsingNamespace.Tests.ps1 b/test/powershell/Language/Parser/UsingNamespace.Tests.ps1 index aa9c60fef1..522fe1866e 100644 --- a/test/powershell/Language/Parser/UsingNamespace.Tests.ps1 +++ b/test/powershell/Language/Parser/UsingNamespace.Tests.ps1 @@ -61,7 +61,7 @@ class C2 #[ElapsedEventHandler][CompilerGeneratedAttribute()]$EventHandler } -Describe "Using Namespace" -Tags "DRT" { +Describe "Using Namespace" -Tags "CI" { It "Type literals w/ using namespace" { [Thread].FullName | Should Be System.Threading.Thread [Int32].FullName | Should Be System.Int32 diff --git a/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 b/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 index 5e3008659f..682079824d 100644 --- a/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 +++ b/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 @@ -4,7 +4,7 @@ ## Script debugging tests ## -Describe "Breakpoints set on custom FileSystem provider files should work" -tags 'Innerloop', 'DRT' { +Describe "Breakpoints set on custom FileSystem provider files should work" -Tags "CI" { # # # DRT @@ -54,7 +54,7 @@ Describe "Breakpoints set on custom FileSystem provider files should work" -tags } -Describe "Tests line breakpoints on dot-sourced files" -tags 'Innerloop', 'DRT' { +Describe "Tests line breakpoints on dot-sourced files" -Tags "CI" { # # # DRT @@ -109,7 +109,7 @@ Describe "Tests line breakpoints on dot-sourced files" -tags 'Innerloop', 'DRT' } -Describe "Function calls clear debugger cache too early" -tags 'Innerloop', 'DRT' { +Describe "Function calls clear debugger cache too early" -Tags "CI" { # # # DRT @@ -164,7 +164,7 @@ Describe "Function calls clear debugger cache too early" -tags 'Innerloop', 'DRT } -Describe "Line breakpoints on commands in multi-line pipelines" -tags 'Innerloop', 'DRT' { +Describe "Line breakpoints on commands in multi-line pipelines" -Tags "CI" { # # # DRT @@ -249,7 +249,7 @@ Describe "Line breakpoints on commands in multi-line pipelines" -tags 'Innerloop } -Describe "Unit tests for various script breakpoints" -tags 'Innerloop', 'DRT' { +Describe "Unit tests for various script breakpoints" -Tags "CI" { # # # DRT @@ -416,7 +416,7 @@ Describe "Unit tests for various script breakpoints" -tags 'Innerloop', 'DRT' { } -Describe "Unit tests for line breakpoints on dot-sourced files" -tags 'Innerloop', 'P1' { +Describe "Unit tests for line breakpoints on dot-sourced files" -Tags "CI" { # # # PriorityOne @@ -504,7 +504,7 @@ Describe "Unit tests for line breakpoints on dot-sourced files" -tags 'Innerloop } -Describe "Unit tests for line breakpoints on modules" -tags 'Innerloop', 'DRT' { +Describe "Unit tests for line breakpoints on modules" -Tags "CI" { # # # DRT @@ -609,7 +609,7 @@ Describe "Unit tests for line breakpoints on modules" -tags 'Innerloop', 'DRT' { } -Describe "Sometimes line breakpoints are ignored" -tags 'Innerloop', 'DRT' { +Describe "Sometimes line breakpoints are ignored" -Tags "CI" { ##################################################################################### # # diff --git a/test/powershell/Language/Scripting/Debugging/DebuggingInHost.Tests.ps1 b/test/powershell/Language/Scripting/Debugging/DebuggingInHost.Tests.ps1 index 81628df620..b8b07e739b 100644 --- a/test/powershell/Language/Scripting/Debugging/DebuggingInHost.Tests.ps1 +++ b/test/powershell/Language/Scripting/Debugging/DebuggingInHost.Tests.ps1 @@ -4,7 +4,7 @@ ## Debugging in Host tests ## -Describe "Tests Debugger GetCallStack() on runspaces when attached to a WinRM host process" -Tags 'InnerLoop','P1' { +Describe "Tests Debugger GetCallStack() on runspaces when attached to a WinRM host process" -Tags "CI" { It -skip "Disabled test because it is fragile and does not consistently succeed on test VMs" { } return diff --git a/test/powershell/Modules/CimCmdlets/Get-CimClass.Tests.ps1 b/test/powershell/Modules/CimCmdlets/Get-CimClass.Tests.ps1 index 6624c878a3..f6a48089ce 100644 --- a/test/powershell/Modules/CimCmdlets/Get-CimClass.Tests.ps1 +++ b/test/powershell/Modules/CimCmdlets/Get-CimClass.Tests.ps1 @@ -1,4 +1,4 @@ -Describe 'Get-CimClass' { +Describe 'Get-CimClass' -tags "CI" { # Get-CimClass works only on windows It 'can get CIM_Error CIM class' -Skip:(-not $IsWindows) { Get-CimClass -ClassName CIM_Error | Should Not Be $null diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/Import-Module.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/Import-Module.Tests.ps1 index 52e8dd1b3b..86e575a1df 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/Import-Module.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/Import-Module.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Import-Module" { +Describe "Import-Module" -Tags "CI" { $moduleName = "Microsoft.PowerShell.Security" BeforeEach { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/Remove-Module.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/Remove-Module.Tests.ps1 index c1d8eae886..533ae98a29 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/Remove-Module.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/Remove-Module.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Remove-Module" { +Describe "Remove-Module" -Tags "CI" { $moduleName = "Microsoft.PowerShell.Security" BeforeEach { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/Set-PSDebug.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/Set-PSDebug.Tests.ps1 index 34bef0f9bf..836042a397 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/Set-PSDebug.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/Set-PSDebug.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Set-PSDebug" { +Describe "Set-PSDebug" -Tags "CI" { Context "Tracing can be used" { AfterEach { Set-PSDebug -Off diff --git a/test/powershell/Modules/Microsoft.PowerShell.Diagnostics/Get-WinEvent.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Diagnostics/Get-WinEvent.Tests.ps1 index fc438e94b6..0e5b663f4d 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Diagnostics/Get-WinEvent.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Diagnostics/Get-WinEvent.Tests.ps1 @@ -1,4 +1,4 @@ -Describe 'Get-WinEvent' { +Describe 'Get-WinEvent' -Tags "CI" { # Get-WinEvent works only on windows It 'can query a System log' -Skip:(-not $IsWindows) { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Add-Content.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Add-Content.Tests.ps1 index 6a2c1a41ca..48ccd17edf 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Add-Content.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Add-Content.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Add-Content cmdlet tests" -Tags:DRT { +Describe "Add-Content cmdlet tests" -Tags "CI" { $file1 = "file1.txt" Setup -File "$file1" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Content.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Content.Tests.ps1 index 5691986115..a0e191187e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Content.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Content.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Clear-Content cmdlet tests" -Tags:DRT { +Describe "Clear-Content cmdlet tests" -Tags "CI" { $file1 = "file1.txt" Setup -File "$file1" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-EventLog.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-EventLog.Tests.ps1 index 631a0981f7..0405fac66e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-EventLog.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Clear-EventLog.Tests.ps1 @@ -5,7 +5,7 @@ if ($IsWindows -and !$IsCoreCLR) { if ($windowsPrincipal.IsInRole("Administrators") -eq $true) { $NonWinAdmin=$false } else {$NonWinAdmin=$true} - Describe "Clear-EventLog cmdlet tests" -Tags:DRT { + Describe "Clear-EventLog cmdlet tests" -Tags "CI" { #DRT - CmdLet is NYI - change to -Skip:($NonWinAdmin) when implemented It "should be able to Clear-EventLog" -Pending:($True -Or $NonWinAdmin) { Remove-EventLog -LogName TestLog -ea Ignore diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ChildItem.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ChildItem.Tests.ps1 index 6925f6b64d..65e4481ecf 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ChildItem.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ChildItem.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-ChildItem" { +Describe "Get-ChildItem" -Tags "CI" { It "Should list the contents of the current folder" { (Get-ChildItem .).Name.Length | Should BeGreaterThan 0 } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 index 9606b9a330..d3d82bd0ec 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Content" -Tags:DRT { +Describe "Get-Content" -Tags "CI" { $testString = "This is a test content for a file" $nl = [Environment]::NewLine $firstline = "Here's a first line " @@ -131,4 +131,4 @@ Describe "Get-Content" -Tags:DRT { } else {$expected = "Hell","o,ll","ll","Worll","d`nHell","o2,ll","ll","Worll","d2`n"} for ($i = 0; $i -lt $result.Length ; $i++) { $result[$i] | Should BeExactly $expected[$i]} } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-EventLog.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-EventLog.Tests.ps1 index 9b5b4803ab..ef97aa7b6d 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-EventLog.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-EventLog.Tests.ps1 @@ -5,7 +5,7 @@ if ($windowsPrincipal.IsInRole("Administrators") -eq $true) { $NonWinAdmin=$false } else {exit} - Describe "Get-EventLog cmdlet tests" -Tags:DRT { + Describe "Get-EventLog cmdlet tests" -Tags "CI" { #CmdLets are not yet implemented, so these cases are -Pending:($True) for now... It "should return an array of eventlogs objects when called with -AsString parameter" -Pending:($True) { {$result=Get-EventLog -AsString -ea stop} | Should Not Throw diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Item.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Item.Tests.ps1 index 298236636e..9dc9c0973f 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Item.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Item.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Item" { +Describe "Get-Item" -Tags "CI" { It "Should list all the items in the current working directory when asterisk is used" { (Get-Item (Join-Path -Path $PSScriptRoot -ChildPath "*")).GetType().BaseType | Should Be 'array' (Get-Item (Join-Path -Path $PSScriptRoot -ChildPath "*")).GetType().Name | Should Be 'Object[]' diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ItemProperty.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ItemProperty.Tests.ps1 index 2cf1d0f636..0c940302a8 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ItemProperty.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ItemProperty.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-ItemProperty" { +Describe "Get-ItemProperty" -Tags "CI" { $currentDirectory = Split-Path $PSScriptRoot -Leaf $parentDirectory = Split-Path (Join-Path -Path $PSScriptRoot -ChildPath "..") -Leaf $tempDirectory = $TestDrive diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1 index c5078a449c..f9368fabe3 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Location.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Location" { +Describe "Get-Location" -Tags "CI" { $currentDirectory=[System.IO.Directory]::GetCurrentDirectory() BeforeEach { pushd $currentDirectory diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSDrive.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSDrive.Tests.ps1 index e44e8e148c..3fe0b272c1 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSDrive.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSDrive.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-PSDrive" { +Describe "Get-PSDrive" -Tags "CI" { It "Should not throw" { Get-PSDrive | Should Not BeNullOrEmpty diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSProvider.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSProvider.Tests.ps1 index 99999a074f..6e0ec064c5 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSProvider.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSProvider.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-PSProvider" { +Describe "Get-PSProvider" -Tags "CI" { It "Should be able to call with no parameters without error" { { Get-PSProvider } | Should Not Throw } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 index 64a9f7fe46..97d83b4871 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Process.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Process" { +Describe "Get-Process" -Tags "CI" { It "Should support -IncludeUserName" { (Get-Process powershell -IncludeUserName | Select-Object -First 1).UserName | Should Match $env:USERNAME } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Hierarchical-Path.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Hierarchical-Path.Tests.ps1 index f45c1e8b8d..6dab82f532 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Hierarchical-Path.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Hierarchical-Path.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Hierarchical paths" { +Describe "Hierarchical paths" -Tags "CI" { BeforeAll { $data = "Hello World" Setup -File testFile.txt -Content $data diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Join-Path.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Join-Path.Tests.ps1 index 74e19bced3..9bd63888df 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Join-Path.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Join-Path.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Join-Path cmdlet tests" -Tags DRT { +Describe "Join-Path cmdlet tests" -Tags "CI" { $SepChar=[io.path]::DirectorySeparatorChar BeforeAll { $StartingLocation = Get-Location @@ -43,4 +43,4 @@ Describe "Join-Path cmdlet tests" -Tags DRT { $result.Count | Should be 1 $result | Should BeExactly ("Env:"+$SepChar+"foo") } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/New-EventLog.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/New-EventLog.Tests.ps1 index 0557d64dcb..2933207024 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/New-EventLog.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/New-EventLog.Tests.ps1 @@ -5,7 +5,7 @@ if ($windowsPrincipal.IsInRole("Administrators") -eq $true) { $NonWinAdmin=$false } else {$NonWinAdmin=$true} - Describe "New-EventLog cmdlet tests" -Tags DRT { + Describe "New-EventLog cmdlet tests" -Tags "CI" { BeforeEach { Remove-EventLog -LogName TestLog -ea Ignore } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 index 155f2226f0..9fa0188be2 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1 @@ -16,7 +16,7 @@ function Clean-State } } -Describe "New-Item" { +Describe "New-Item" -Tags "CI" { $tmpDirectory = $TestDrive $testfile = "testfile.txt" $testfolder = "newDirectory" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Pop-Location.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Pop-Location.Tests.ps1 index b066d4a1e3..f48c1c8e9a 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Pop-Location.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Pop-Location.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Pop-Location" { +Describe "Pop-Location" -Tags "CI" { $startDirectory = $(Get-Location).Path BeforeEach { Set-Location $startDirectory } @@ -25,4 +25,4 @@ Describe "Pop-Location" { } Set-Location $startDirectory -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Push-Location.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Push-Location.Tests.ps1 index 3fa1912861..2cf1c7df7d 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Push-Location.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Push-Location.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Test-Push-Location" { +Describe "Test-Push-Location" -Tags "CI" { New-Variable -Name startDirectory -Value $(Get-Location).Path -Scope Global -Force BeforeEach { cd $startDirectory } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-EventLog.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-EventLog.Tests.ps1 index 1e5a29c65a..8494d03772 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-EventLog.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-EventLog.Tests.ps1 @@ -5,7 +5,7 @@ if ($windowsPrincipal.IsInRole("Administrators") -eq $true) { $NonWinAdmin=$false } else {$NonWinAdmin=$true} - Describe "New-EventLog cmdlet tests" -Tags DRT { + Describe "New-EventLog cmdlet tests" -Tags "CI" { BeforeEach{ Remove-EventLog -LogName TestLog -ea Ignore {New-EventLog -LogName TestLog -Source TestSource -ea Stop} | Should Not Throw diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 index fd63808848..1717da27e1 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Remove-Item.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Remove-Item" { +Describe "Remove-Item" -Tags "CI" { $testpath = $TestDrive $testfile = "testfile.txt" $testfilepath = Join-Path -Path $testpath -ChildPath $testfile diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 index a39e32ee9c..c271989dcb 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Set-Content cmdlet tests" -Tags:DRT { +Describe "Set-Content cmdlet tests" -Tags "CI" { $file1 = "file1.txt" Setup -File "$file1" -Content $file1 Context "Set-Content should actually set content" { @@ -48,4 +48,4 @@ Describe "Set-Content cmdlet tests" -Tags:DRT { $result[1] |Should be "world" } } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 index 2fbb5be88c..c283b2e538 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Set-Location" { +Describe "Set-Location" -Tags "CI" { $startDirectory = Get-Location if ($IsWindows) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Split-Path.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Split-Path.Tests.ps1 index ff3fa343dc..e8ffbfb985 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Split-Path.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Split-Path.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Split-Path" { +Describe "Split-Path" -Tags "CI" { It "Should return a string object when invoked" { ( Split-Path . ).GetType().Name | Should Be "String" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Start-Process.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Start-Process.Tests.ps1 index 1fa9d768c6..e00c5b6015 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Start-Process.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Start-Process.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Start-Process" { +Describe "Start-Process" -Tags @("CI","SLOW") { $pingCommand = (Get-Command -CommandType Application ping)[0].Definition $pingDirectory = Split-Path $pingCommand -Parent $tempFile = Join-Path -Path $TestDrive -ChildPath PSTest diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Path.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Path.Tests.ps1 index 1a49a927da..eee09b70bc 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Path.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Path.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Test-Path" { +Describe "Test-Path" -Tags "CI" { BeforeAll { $testdirectory = $TestDrive $testfilename = New-Item -path $testdirectory -Name testfile.txt -ItemType file -Value 1 -force diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/TimeZone.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/TimeZone.Tests.ps1 index ae2b340e50..3a87622ce6 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/TimeZone.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/TimeZone.Tests.ps1 @@ -28,7 +28,7 @@ function Assert-ListsSame } } -Describe "Get-Timezone test case no switches" -tags 'BVT' { +Describe "Get-Timezone test case no switches" -Tags "CI" { It "Call without ListAvailable switch returns current TimeZoneInfo" { $observed = (Get-TimeZone).Id $expected = ([System.TimeZoneInfo]::Local).Id @@ -36,7 +36,7 @@ Describe "Get-Timezone test case no switches" -tags 'BVT' { } } -Describe "Get-Timezone test cases" -tags 'Innerloop','RI' { +Describe "Get-Timezone test cases" -Tags "CI" { It "Call without ListAvailable switch returns an object of type TimeZoneInfo" { $result = (Get-TimeZone).GetType().Name @@ -118,7 +118,7 @@ Describe "Get-Timezone test cases" -tags 'Innerloop','RI' { } } -Describe "Set-Timezone test case: call by single Id" -tags 'BVT' { +Describe "Set-Timezone test case: call by single Id" -Tags "CI" { $originalTimeZoneId BeforeAll { $originalTimeZoneId = (Get-TimeZone).Id @@ -145,7 +145,7 @@ Describe "Set-Timezone test case: call by single Id" -tags 'BVT' { } } -Describe "Set-Timezone test cases" -tags 'Innerloop','RI' { +Describe "Set-Timezone test cases" -Tags "Feature" { $originalTimeZoneId BeforeAll { $originalTimeZoneId = (Get-TimeZone).Id diff --git a/test/powershell/Modules/Microsoft.PowerShell.Security/ExecutionPolicy.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Security/ExecutionPolicy.Tests.ps1 index cdc5a239cc..3fbcc2e23b 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Security/ExecutionPolicy.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Security/ExecutionPolicy.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "ExecutionPolicy" { +Describe "ExecutionPolicy" -Tags "CI" { Context "Check Get-ExecutionPolicy behavior" { It "Should unrestricted when not on Windows" -Skip:$IsWindows { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Security/FileCatalog.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Security/FileCatalog.Tests.ps1 index ec08f7f902..3cba2d422b 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Security/FileCatalog.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Security/FileCatalog.Tests.ps1 @@ -7,7 +7,7 @@ if ($IsWindows) { $script:catalogPath = "" -Describe "Test suite for NewFileCatalogAndTestFileCatalogCmdlets" -Tags "Innerloop","BVT" { +Describe "Test suite for NewFileCatalogAndTestFileCatalogCmdlets" -Tags "CI" { #compare two hashtables function CompareHashTables diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Member.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Member.Tests.ps1 index b78f8c7dd9..a669bf3082 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Member.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Member.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Add-Member DRT Unit Tests" -Tags DRT{ +Describe "Add-Member DRT Unit Tests" -Tags "CI" { It "Mandatory parameters should not be null nor empty" { # when Name is null @@ -278,7 +278,7 @@ } } -Describe "Add-Member" { +Describe "Add-Member" -Tags "CI" { It "should be able to see a newly added member of an object" { $o = New-Object psobject diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 index f59fa51108..5b4b7d7d6e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 @@ -1,6 +1,6 @@ $guid = [Guid]::NewGuid().ToString().Replace("-","") -Describe "Add-Type" { +Describe "Add-Type" -Tags "CI" { It "Should not throw given a simple class definition" { { Add-Type -TypeDefinition "public static class foo { }" } | Should Not Throw } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Clear-Variable.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Clear-Variable.Tests.ps1 index 22e1ce65b2..cfde94aae2 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Clear-Variable.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Clear-Variable.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Clear-Variable DRT Unit Tests" -Tags DRT{ +Describe "Clear-Variable DRT Unit Tests" -Tags "CI" { It "Clear-Variable normal variable Name should works"{ Set-Variable foo bar Clear-Variable -Name foo @@ -97,7 +97,7 @@ Describe "Clear-Variable DRT Unit Tests" -Tags DRT{ } } -Describe "Clear-Variable" { +Describe "Clear-Variable" -Tags "CI" { BeforeEach { $var1 = 3 } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Compare-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Compare-Object.Tests.ps1 index 73ff7a5c79..55d09a8b43 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Compare-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Compare-Object.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Compare-Object" { +Describe "Compare-Object" -Tags "CI" { BeforeAll { $nl = [Environment]::NewLine @@ -120,7 +120,7 @@ Describe "Compare-Object" { } } -Describe "Compare-Object DRT basic functionality" -Tags DRT{ +Describe "Compare-Object DRT basic functionality" -Tags "CI" { if(-not ([System.Management.Automation.PSTypeName]'Employee').Type) { Add-Type -TypeDefinition @" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-Csv.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-Csv.Tests.ps1 index ffb6446d4c..4c24cee8b8 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-Csv.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-Csv.Tests.ps1 @@ -1,6 +1,6 @@ $here = Split-Path -Parent $MyInvocation.MyCommand.Path -Describe "ConvertFrom-Csv" { +Describe "ConvertFrom-Csv" -Tags "CI" { $testObject = "a", "1" $testcsv = Join-Path -Path (Join-Path -Path $here -ChildPath assets) -ChildPath TestCsv2.csv $testName = "Zaphod BeebleBrox" @@ -51,7 +51,7 @@ a,b,c } } -Describe "ConvertFrom-Csv DRT Unit Tests" -Tags DRT{ +Describe "ConvertFrom-Csv DRT Unit Tests" -Tags "CI" { It "Test ConvertFrom-Csv with pipelined InputObject and Header" { $inputObject = [pscustomobject]@{ First = 1; Second = 2 } $res = $inputObject | ConvertTo-Csv @@ -62,4 +62,4 @@ Describe "ConvertFrom-Csv DRT Unit Tests" -Tags DRT{ $result[1].Header1 | Should Be "1" $result[1].Header2 | Should Be "2" } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-StringData.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-StringData.Tests.ps1 index fe1f6232a7..05994c69ee 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-StringData.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertFrom-StringData.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "ConvertFrom-StringData DRT Unit Tests" -Tags DRT { +Describe "ConvertFrom-StringData DRT Unit Tests" -Tags "CI" { It "Should able to throw error when convert invalid line" { $str =@" #comments here @@ -18,7 +18,7 @@ def=content of def } } -Describe "ConvertFrom-StringData" { +Describe "ConvertFrom-StringData" -Tags "CI" { $sampleData = @' foo = 0 bar = 1 diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Csv.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Csv.Tests.ps1 index 01e352ec2b..27296c98f1 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Csv.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Csv.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "ConvertTo-Csv DRT Unit Tests" -Tags DRT{ +Describe "ConvertTo-Csv DRT Unit Tests" -Tags "CI" { $inputObject = [pscustomobject]@{ First = 1; Second = 2 } It "Test convertto-csv with psobject pipelined" { @@ -35,7 +35,7 @@ Describe "ConvertTo-Csv DRT Unit Tests" -Tags DRT{ } } -Describe "ConvertTo-Csv" { +Describe "ConvertTo-Csv" -Tags "CI" { $Name = "Hello"; $Data = "World"; $testObject = New-Object psobject -Property @{ FirstColumn = $Name; SecondColumn = $Data } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-SecureString.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-SecureString.Tests.ps1 index 84e3a53d3d..ca8ab4b34b 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-SecureString.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-SecureString.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "ConvertTo-SecureString" { +Describe "ConvertTo-SecureString" -Tags "CI" { Context "Checking return types of ConvertTo-SecureString" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Xml.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Xml.Tests.ps1 index b090e090de..3c03e66010 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Xml.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Xml.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "ConvertTo-Xml DRT Unit Tests" -Tags DRT{ +Describe "ConvertTo-Xml DRT Unit Tests" -Tags "CI" { $customPSObject = [pscustomobject]@{ "prop1" = "val1"; "prop2" = "val2" } $newLine = [System.Environment]::NewLine It "Test convertto-xml with a depth parameter" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Default-Aliases.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Default-Aliases.Tests.ps1 index b1b87472d9..1ede48852a 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Default-Aliases.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Default-Aliases.Tests.ps1 @@ -1,6 +1,6 @@ $removeAliasList = @("ac","compare","cpp","diff","sleep","sort","start","cat","cp","ls","man","mount","mv","ps","rm","rmdir") $keepAliasList = @{cd="Set-Location"},@{dir="Get-ChildItem"},@{echo="Write-output"},@{fc="format-custom"},@{kill="stop-process"},@{clear="clear-host"} -Describe "Windows aliases do not conflict with Linux commands" { +Describe "Windows aliases do not conflict with Linux commands" -Tags "CI" { foreach ($alias in $removeAliasList) { It "Should not have certain aliases on Linux" -Skip:$IsWindows { Test-Path Alias:$alias | Should Be $false diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Environment-Variables.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Environment-Variables.Tests.ps1 index e86d881bb0..2cf79380c3 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Environment-Variables.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Environment-Variables.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Environment-Variables" { +Describe "Environment-Variables" -Tags "CI" { It "Should have environment variables" { Get-Item ENV: | Should Not BeNullOrEmpty diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Alias.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Alias.Tests.ps1 index a51ad64ef2..713144cd4f 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Alias.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Alias.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Export-Alias DRT Unit Tests" -Tags DRT{ +Describe "Export-Alias DRT Unit Tests" -Tags "CI" { $testAliasDirectory = Join-Path -Path $TestDrive -ChildPath ExportAliasTestDirectory $testAliases = "TestAliases" $fulltestpath = Join-Path -Path $testAliasDirectory -ChildPath $testAliases @@ -124,7 +124,7 @@ Describe "Export-Alias DRT Unit Tests" -Tags DRT{ } } -Describe "Export-Alias" { +Describe "Export-Alias" -Tags "CI" { $testAliasDirectory = Join-Path -Path $TestDrive -ChildPath ExportAliasTestDirectory $testAliases = "TestAliases" $fulltestpath = Join-Path -Path $testAliasDirectory -ChildPath $testAliases diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Csv.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Csv.Tests.ps1 index f5009ff10a..0340ae3d40 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Csv.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Csv.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Export-Csv" { +Describe "Export-Csv" -Tags "CI" { $testObject = @("test","object","array") $testCsv = "output.csv" @@ -65,7 +65,7 @@ Describe "Export-Csv" { } } -Describe "Export-Csv DRT Unit Tests" -Tags DRT{ +Describe "Export-Csv DRT Unit Tests" -Tags "CI" { $filePath = Join-Path $TestDrive -ChildPath "test.csv" $newLine = [environment]::NewLine It "Test basic function works well" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-FormatData.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-FormatData.Tests.ps1 index 9a8c0c1d31..fc50695b83 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-FormatData.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Export-FormatData.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Export-FormatData DRT Unit Tests" -Tags DRT{ +Describe "Export-FormatData DRT Unit Tests" -Tags "CI" { It "Test basic functionality" { $fd = Get-FormatData $tempFile = Join-Path $TestDrive -ChildPath "exportFormatTest.txt" @@ -14,7 +14,7 @@ Describe "Export-FormatData DRT Unit Tests" -Tags DRT{ } } -Describe "Export-FormatData" { +Describe "Export-FormatData" -Tags "CI" { Context "Check Export-FormatData can be called validly." { It "Should be able to be called without error" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Custom.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Custom.Tests.ps1 index 3645f9758e..bc040af6e9 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Custom.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Custom.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Format-Custom" { +Describe "Format-Custom" -Tags "CI" { Context "Check Format-Custom aliases" { @@ -25,7 +25,7 @@ Describe "Format-Custom" { } -Describe "Format-Custom DRT basic functionality" -Tags DRT{ +Describe "Format-Custom DRT basic functionality" -Tags "CI" { Add-Type -TypeDefinition @" public abstract class NamedItem { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-List.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-List.Tests.ps1 index 3bc9d4dcff..d2fc441d17 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-List.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-List.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Format-List" { +Describe "Format-List" -Tags "CI" { $nl = [Environment]::NewLine BeforeEach { $in = New-Object PSObject @@ -67,7 +67,7 @@ Describe "Format-List" { } } -Describe "Format-List DRT basic functionality" -Tags DRT{ +Describe "Format-List DRT basic functionality" -Tags "CI" { It "Format-List with array should work" { $al = (0..255) $info = @{} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Table.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Table.Tests.ps1 index b56cb809d8..82ae1d7658 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Table.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Table.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Format-Table" { +Describe "Format-Table" -Tags "CI" { It "Should call format table on piped input without error" { { Get-Date | Format-Table } | Should Not Throw @@ -28,7 +28,7 @@ Describe "Format-Table" { } -Describe "Format-Table DRT Unit Tests" -Tags DRT{ +Describe "Format-Table DRT Unit Tests" -Tags "CI" { It "Format-Table with not existing table with force should throw PipelineStoppedException"{ $obj = New-Object -typename PSObject try diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Wide.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Wide.Tests.ps1 index f588870db8..c9b1a6febc 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Wide.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Format-Wide.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Format-Wide" { +Describe "Format-Wide" -Tags "CI" { It "Should have the same output between the alias and the unaliased function" { $nonaliased = Get-ChildItem | Format-Wide @@ -39,7 +39,7 @@ Describe "Format-Wide" { } } -Describe "Format-Wide DRT basic functionality" -Tags DRT{ +Describe "Format-Wide DRT basic functionality" -Tags "CI" { It "Format-Wide with array should work" { $al = (0..255) $info = @{} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Alias.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Alias.Tests.ps1 index a4e09f57a2..1a102d1f1b 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Alias.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Alias.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "Get-Alias DRT Unit Tests" -Tags DRT{ +Describe "Get-Alias DRT Unit Tests" -Tags "CI" { It "Get-Alias Bogus Scope Name should throw PSArgumentException"{ try { Get-Alias -Name "ABCD" -Scope "bogus" @@ -173,7 +173,7 @@ Describe "Get-Alias DRT Unit Tests" -Tags DRT{ } } -Describe "Get-Alias" { +Describe "Get-Alias" -Tags "CI" { It "Should have a return type of System.Array when gal returns more than one object" { $val1=(Get-Alias a*) $val2=(Get-Alias c*) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 index f886b57d65..8b9526a030 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Culture DRT Unit Tests" -Tags DRT{ +Describe "Get-Culture DRT Unit Tests" -Tags "CI" { It "Should works proper with get-culture" { $results = get-Culture $results -is "System.Globalization.CultureInfo" | Should be $true @@ -6,7 +6,7 @@ Describe "Get-Culture DRT Unit Tests" -Tags DRT{ } } -Describe "Get-Culture" { +Describe "Get-Culture" -Tags "CI" { It "Should return a type of CultureInfo for Get-Culture cmdlet" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 index 69f113fb77..d4e4cc48b0 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Date DRT Unit Tests" -Tags DRT { +Describe "Get-Date DRT Unit Tests" -Tags "CI" { It "Get-Date with all parameters returns proper results" { $date = [datetime]::Now + ([timespan]::new(0,0,30)) $result = Get-Date -Date $date -Year 1973 -Month 2 -Day 22 -Hour 15 -Minute 40 -Second 10 -Millisecond 200 @@ -80,7 +80,7 @@ Describe "Get-Date DRT Unit Tests" -Tags DRT { } -Describe "Get-Date" { +Describe "Get-Date" -Tags "CI" { It "Should return a DateTime object upon being called" { (Get-Date).GetType().Name.Equals('DateTime') | Should Be $true } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Event.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Event.Tests.ps1 index 580dce1716..c4e0845161 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Event.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Event.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Event" { +Describe "Get-Event" -Tags "CI" { BeforeEach { ( New-Event -SourceIdentifier PesterTestEvent -sender Windows.timer -messagedata "PesterTestMessage" ) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-EventSubscriber.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-EventSubscriber.Tests.ps1 index a073f51123..0d318d9262 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-EventSubscriber.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-EventSubscriber.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-EventSubscriber" { +Describe "Get-EventSubscriber" -Tags "CI" { AfterEach { Unregister-Event -SourceIdentifier PesterTestRegister -ErrorAction SilentlyContinue diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FileHash.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FileHash.Tests.ps1 index f21e8933f6..8e2081fd7e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FileHash.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FileHash.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-FileHash" { +Describe "Get-FileHash" -Tags "CI" { New-Variable testDocument -Value (Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath testablescript.ps1) -Scope Global -Force # The MACTripleDES and RIPEMD160 algorithms are unsupported on Linux $algorithms = @{"SHA1" ="01B865D143E07ECC875AB0EFC0A4429387FD0CF7"; diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1 index b539fc8c70..5c325f206c 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-FormatData" { +Describe "Get-FormatData" -Tags "CI" { Context "Check return type of Get-FormatData" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1 index 9d84332017..2a9e1a75a7 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Host.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Host DRT Unit Tests" -Tags DRT{ +Describe "Get-Host DRT Unit Tests" -Tags "CI" { It "Should works proper with get-host" { $results = Get-Host $results | Should Be $Host @@ -6,7 +6,7 @@ Describe "Get-Host DRT Unit Tests" -Tags DRT{ } } -Describe "Get-Host" { +Describe "Get-Host" -Tags "CI" { It "Should return a type of InternalHost for Get-Host cmdlet" { (Get-Host).GetType().Name | Should Be InternalHost diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Member.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Member.Tests.ps1 index 5419f9bd5c..6e9c0dec50 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Member.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Member.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Member" { +Describe "Get-Member" -Tags "CI" { It "Should be able to be called on string objects, ints, arrays, etc" { $a = 1 #test numbers $b = 1.3 @@ -40,7 +40,7 @@ Describe "Get-Member" { } } -Describe "Get-Member DRT Unit Tests" -Tags DRT { +Describe "Get-Member DRT Unit Tests" -Tags "CI" { Context "Verify Get-Member with Class" { if(-not ([System.Management.Automation.PSTypeName]'Employee').Type) { @@ -291,4 +291,4 @@ Describe "Get-Member DRT Unit Tests" -Tags DRT { } } } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSBreakpoint.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSBreakpoint.Tests.ps1 index c08f10f406..983052875f 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSBreakpoint.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSBreakpoint.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-PSBreakpoint" { +Describe "Get-PSBreakpoint" -Tags "CI" { $scriptName = "Get-PSBreakpoint.Tests.ps1" $fullScriptPath = Join-Path -Path $PSScriptRoot -ChildPath $scriptName diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSCallStack.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSCallStack.Tests.ps1 index 52124e8a01..97e40b9fa4 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSCallStack.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-PSCallStack.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-PSCallStack DRT Unit Tests" -Tags DRT { +Describe "Get-PSCallStack DRT Unit Tests" -Tags "CI" { BeforeAll { $scriptFileName = "GetTryCatchCallStack.ps1" $scriptFilePath = Join-Path $TestDrive -ChildPath $scriptFileName @@ -84,4 +84,4 @@ $results[1].ScriptLineNumber | Should be 7 $results[1].InvocationInfo.ScriptLineNumber | Should be 75 } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Random.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Random.Tests.ps1 index 58cca7cb92..2e3847a1f5 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Random.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Random.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Random DRT Unit Tests" -Tags DRT{ +Describe "Get-Random DRT Unit Tests" -Tags "CI" { $testData = @( @{ Name = 'no params'; Maximum = $null; Minimum = $null; GreaterThan = -1; LessThan = ([int32]::MaxValue); Type = 'System.Int32' } @{ Name = 'only positive maximum number'; Maximum = 100; Minimum = $null; GreaterThan = -1; LessThan = 100; Type = 'System.Int32' } @@ -89,7 +89,7 @@ Describe "Get-Random DRT Unit Tests" -Tags DRT{ } } -Describe "Get-Random" { +Describe "Get-Random" -Tags "CI" { It "Should return a random number greater than -1 " { Get-Random | Should BeGreaterThan -1 } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-RunspaceDebug.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-RunspaceDebug.Tests.ps1 index 76fd8bc549..d44f5d6a25 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-RunspaceDebug.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-RunspaceDebug.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-RunspaceDebug" { +Describe "Get-RunspaceDebug" -Tags "CI" { Context "Check return types of RunspaceDebug" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-TraceSource.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-TraceSource.Tests.ps1 index bd777d7cf0..9bcb4e9688 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-TraceSource.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-TraceSource.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-TraceSource" -tags "P1" { +Describe "Get-TraceSource" -Tags "Feature" { It "Should output data sorted by name" { $expected = (Get-TraceSource | Sort-Object Name) Get-TraceSource | Should be $expected diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-UICulture.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-UICulture.Tests.ps1 index 6bc092418b..3a67b39dd9 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-UICulture.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-UICulture.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-UICulture" { +Describe "Get-UICulture" -Tags "CI" { It "Should return a type of CultureInfo as the name of the type" { (Get-UICulture).GetType().Name | Should Match CultureInfo } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Unique.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Unique.Tests.ps1 index 2b5688e906..bfb9d97ad1 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Unique.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Unique.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Get-Unique DRT Unit Tests" -Tags DRT{ +Describe "Get-Unique DRT Unit Tests" -Tags "CI" { It "Command get-unique works with AsString switch" { $inputArray = "aa","aa","Aa","ba","BA","BA" $results = $inputArray | Get-Unique -AsString @@ -17,7 +17,7 @@ Describe "Get-Unique DRT Unit Tests" -Tags DRT{ } } -Describe "Get-Unique" { +Describe "Get-Unique" -Tags "CI" { $sortedList1 = 1,2,2,3,3,4,5 It "Should be able to use the Get-Unique cmdlet without error with inputObject switch" { { Get-Unique -InputObject $sortedList1 } | Should Not Throw diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Variable.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Variable.Tests.ps1 index 36a4933dbc..78195d572d 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Variable.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Variable.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "Get-Variable DRT Unit Tests" -Tags DRT{ +Describe "Get-Variable DRT Unit Tests" -Tags "CI" { It "Get-Variable of not existing variable Name should throw ItemNotFoundException"{ try { Get-Variable -EA Stop -Name nonexistingVariableName @@ -52,7 +52,7 @@ Describe "Get-Variable DRT Unit Tests" -Tags DRT{ } } -Describe "Get-Variable" { +Describe "Get-Variable" -Tags "CI" { It "Should be able to call with no parameters without error" { { Get-Variable } | Should Not Throw } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Group-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Group-Object.Tests.ps1 index ec47de5dcc..4f0b9549fb 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Group-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Group-Object.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Group-Object DRT Unit Tests" -Tags DRT{ +Describe "Group-Object DRT Unit Tests" -Tags "CI" { It "Test for CaseSensitive switch" { $testObject = 'aA', 'aA', 'AA', 'AA' $results = $testObject | Group-Object -CaseSensitive @@ -11,7 +11,7 @@ Describe "Group-Object DRT Unit Tests" -Tags DRT{ } } -Describe "Group-Object" { +Describe "Group-Object" -Tags "CI" { $testObject = Get-ChildItem It "Should be called using an object as piped without error with no switches" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Alias.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Alias.Tests.ps1 index 62e2f7a650..e1cac010aa 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Alias.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Alias.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Import-Alias DRT Unit Tests" -Tags DRT{ +Describe "Import-Alias DRT Unit Tests" -Tags "CI" { $testAliasDirectory = Join-Path -Path $TestDrive -ChildPath ImportAliasTestDirectory $testAliases = "TestAliases" $fulltestpath = Join-Path -Path $testAliasDirectory -ChildPath $testAliases @@ -61,7 +61,7 @@ Describe "Import-Alias DRT Unit Tests" -Tags DRT{ } } -Describe "Import-Alias" { +Describe "Import-Alias" -Tags "CI" { $newLine=[Environment]::NewLine $testAliasDirectory = Join-Path -Path $TestDrive -ChildPath ImportAliasTestDirectory $testAliases = "pesteralias.txt" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Csv.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Csv.Tests.ps1 index b7821eaeff..ff8290d97d 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Csv.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-Csv.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Import-Csv" { +Describe "Import-Csv" -Tags "CI" { $testCsv = Join-Path -Path (Join-Path $PSScriptRoot -ChildPath assets) -ChildPath TestCsv.csv It "Should be able to call without error" { @@ -50,7 +50,7 @@ Describe "Import-Csv" { } } -Describe "Import-Csv DRT Unit Tests" -Tags DRT { +Describe "Import-Csv DRT Unit Tests" -Tags "CI" { BeforeAll { $fileToGenerate = Join-Path $TestDrive -ChildPath "importCSVTest.csv" $psObject = [pscustomobject]@{ "First" = "1"; "Second" = "2" } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-LocalizedData.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-LocalizedData.Tests.ps1 index 424e74f8df..c62bd6a15f 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-LocalizedData.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Import-LocalizedData.Tests.ps1 @@ -1,6 +1,6 @@ $assetsDir = Join-Path -Path $PSScriptRoot -ChildPath assets -Describe "Import-LocalizedData" { +Describe "Import-LocalizedData" -Tags "CI" { BeforeAll { $script = "localized.ps1" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Expression.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Expression.Tests.ps1 index 349fa3b1bd..1d8e50646e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Expression.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Expression.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Invoke-Expression" { +Describe "Invoke-Expression" -Tags "CI" { Context "Should execute the invoked command validly" { @@ -27,9 +27,9 @@ Describe "Invoke-Expression" { } } } -Describe "Invoke-Expression DRT Unit Tests" -Tags DRT{ +Describe "Invoke-Expression DRT Unit Tests" -Tags "CI" { It "Invoke-Expression should work"{ $result=invoke-expression -Command 2+2 $result|Should Be 4 } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1 index 77534c829e..4f10c17301 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1 @@ -1,6 +1,6 @@ using namespace System.Diagnostics -Describe "Invoke-Item" { +Describe "Invoke-Item" -Tags "CI" { function NewProcessStartInfo([string]$CommandLine, [switch]$RedirectStdIn) { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Command.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Command.Tests.ps1 index 437b3e04e6..c454b7856c 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Command.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Command.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Measure-Command" { +Describe "Measure-Command" -Tags "CI" { Context "Validate return types for Measure-Command" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1 index e85abdf605..ead0347674 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Measure-Object.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Measure-Object" { +Describe "Measure-Object" -Tags "CI" { $testObject = 1,3,4 It "Should be able to be called without error" { @@ -158,7 +158,7 @@ Describe "Measure-Object" { } } -Describe "Measure-Object DRT basic functionality" -Tags DRT{ +Describe "Measure-Object DRT basic functionality" -Tags "CI" { BeforeAll { if(-not ([System.Management.Automation.PSTypeName]'TestMeasureGeneric').Type) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Alias.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Alias.Tests.ps1 index 0a35eed386..1e56479f1d 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Alias.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Alias.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "New-Alias DRT Unit Tests" -Tags DRT{ +Describe "New-Alias DRT Unit Tests" -Tags "CI" { It "New-Alias Constant should throw SessionStateUnauthorizedAccessException"{ try { New-Alias -Name "ABCD" -Value "foo" -Option "Constant" -Force:$true @@ -39,7 +39,7 @@ Describe "New-Alias DRT Unit Tests" -Tags DRT{ } } -Describe "New-Alias" { +Describe "New-Alias" -Tags "CI" { It "Should be able to be called using the name and value parameters without error" { { New-Alias -Name testAlias -Value 100 } | Should Not Throw } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Event.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Event.Tests.ps1 index a5d2c99f30..ed89d76375 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Event.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Event.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "New-Event" { +Describe "New-Event" -Tags "CI" { Context "Check return type of New-Event" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 index 30930dfe36..b4bff16c8b 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Object.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "New-Object" { +Describe "New-Object" -Tags "CI" { It "should create an object with 4 fields" { $o = New-Object psobject $val = $o.GetType() @@ -33,7 +33,7 @@ Describe "New-Object" { } } -Describe "New-Object DRT basic functionality" -Tags DRT{ +Describe "New-Object DRT basic functionality" -Tags "CI" { It "New-Object with int array should work"{ $result = New-Object -TypeName int[] -Arg 10 $result.Count | Should Be 10 @@ -164,4 +164,4 @@ Describe "New-Object DRT basic functionality" -Tags DRT{ $result = New-Object -TypeName PSObject -property @{foo=123} $result.foo | Should Be 123 } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-TimeSpan.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-TimeSpan.Tests.ps1 index 33b25f02e4..ace9616386 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-TimeSpan.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-TimeSpan.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "New-TimeSpan DRT Unit Tests" -Tags DRT{ +Describe "New-TimeSpan DRT Unit Tests" -Tags "CI" { It "Should works proper with new-timespan"{ $results = New-TimeSpan -Days 10 -Hours 10 -Minutes 10 -Seconds 10 $results.GetType() | Should Be timespan @@ -9,7 +9,7 @@ Describe "New-TimeSpan DRT Unit Tests" -Tags DRT{ } } -Describe "New-TimeSpan" { +Describe "New-TimeSpan" -Tags "CI" { It "Should be able to create a new timespan object" { New-Variable -Name testObject -Value $(New-TimeSpan) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Variable.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Variable.Tests.ps1 index 6499838edf..ae4ae64c6e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Variable.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/New-Variable.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "New-Variable DRT Unit Tests" -Tags DRT{ +Describe "New-Variable DRT Unit Tests" -Tags "CI" { It "New-Variable variable with description should works"{ New-Variable foo bar -description "my description" $var1=Get-Variable -Name foo @@ -57,7 +57,7 @@ Describe "New-Variable DRT Unit Tests" -Tags DRT{ } } -Describe "New-Variable" { +Describe "New-Variable" -Tags "CI" { It "Should create a new variable with no parameters" { { New-Variable var1 } | Should Not Throw } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-File.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-File.Tests.ps1 index c3dafc9147..cf99491fce 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-File.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-File.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Out-File DRT Unit Tests" -Tags DRT{ +Describe "Out-File DRT Unit Tests" -Tags "CI" { It "Should be able to write the contens into a file with -pspath" { $tempFile = "ExposeBug928965" { 1 | Out-File -PSPath $tempFile } | Should Not Throw @@ -17,7 +17,7 @@ Describe "Out-File DRT Unit Tests" -Tags DRT{ } } -Describe "Out-File" { +Describe "Out-File" -Tags "CI" { $expectedContent = "some test text" $inObject = New-Object psobject -Property @{text=$expectedContent} $testfile = Join-Path -Path $TestDrive -ChildPath outfileTest.txt diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-String.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-String.Tests.ps1 index 841a4ffe68..3fcc0053cd 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-String.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Out-String.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Out-String DRT Unit Tests" -Tags DRT{ +Describe "Out-String DRT Unit Tests" -Tags "CI" { It "check display of properties with names containing wildcard characters" { $results = new-object psobject | add-member -passthru noteproperty 'name with square brackets: [0]' 'myvalue' | out-string @@ -10,7 +10,7 @@ Describe "Out-String DRT Unit Tests" -Tags DRT{ } -Describe "Out-String" { +Describe "Out-String" -Tags "CI" { $nl = [Environment]::NewLine It "Should accumulate the strings and returns them as a single string" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-EngineEvent.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-EngineEvent.Tests.ps1 index e7b7e9f73d..28b45a8ad4 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-EngineEvent.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-EngineEvent.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Register-EngineEvent" { +Describe "Register-EngineEvent" -Tags "CI" { Context "Check return type of Register-ObjectEvent" { It "Should return System.Management.Automation.PSEventJob as return type of Register-EngineEvent" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-ObjectEvent.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-ObjectEvent.Tests.ps1 index 614ae3b735..cf669e8224 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-ObjectEvent.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Register-ObjectEvent.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Register-ObjectEvent" { +Describe "Register-ObjectEvent" -Tags "CI" { BeforeEach { $pesterobject = (New-Object System.Collections.ObjectModel.ObservableCollection[object]) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Event.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Event.Tests.ps1 index e353d8330b..b79014d9b3 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Event.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Event.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Remove-Event" { +Describe "Remove-Event" -Tags "CI" { BeforeEach { New-Event -sourceidentifier PesterTimer -sender Windows.timer -messagedata "PesterTestMessage" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-PSBreakpoint.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-PSBreakpoint.Tests.ps1 index 66d5ba09ae..3c88c7aaca 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-PSBreakpoint.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-PSBreakpoint.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Remove-PSBreakpoint" { +Describe "Remove-PSBreakpoint" -Tags "CI" { # Set up test script $testScript = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath psbreakpointtestscript.ps1 diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-TypeData.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-TypeData.Tests.ps1 index 6602827aad..130ac8b64d 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-TypeData.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-TypeData.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Remove-TypeData DRT Unit Tests" -Tags DRT { +Describe "Remove-TypeData DRT Unit Tests" -Tags "CI" { BeforeAll { $XMLFile1 = Join-Path $TestDrive -ChildPath "testFile1.ps1xml" $XMLFile2 = Join-Path $TestDrive -ChildPath "testFile2.ps1xml" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Variable.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Variable.Tests.ps1 index a6f6e50a12..2326247fc5 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Variable.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Remove-Variable.Tests.ps1 @@ -1,7 +1,7 @@ # ensure the machine is in a clean state from the outset. Remove-Variable -Name var1 -ErrorAction SilentlyContinue -Force -Describe "Remove-Variable" { +Describe "Remove-Variable" -Tags "CI" { It "Should throw an error when a dollar sign is used in the variable name place" { New-Variable -Name var1 -Value 4 @@ -193,7 +193,7 @@ Describe "Remove-Variable" { } -Describe "Remove-Variable basic functionality" -Tags DRT{ +Describe "Remove-Variable basic functionality" -Tags "CI" { It "Remove-Variable variable should works"{ New-Variable foo bar Remove-Variable foo diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 index 2091070609..825cd4e9c2 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 @@ -1,6 +1,6 @@ . (Join-Path -Path $PSScriptRoot -ChildPath Test-Mocks.ps1) -Describe "Select-Object" { +Describe "Select-Object" -Tags "CI" { BeforeEach { $dirObject = GetFileMock $TestLength = 3 @@ -113,7 +113,7 @@ Describe "Select-Object" { } } -Describe "Select-Object DRT basic functionality" -Tags DRT{ +Describe "Select-Object DRT basic functionality" -Tags "CI" { BeforeAll { $employees = [pscustomobject]@{"FirstName"="joseph"; "LastName"="smith"; "YearsInMS"=15}, [pscustomobject]@{"FirstName"="paul"; "LastName"="smith"; "YearsInMS"=15}, @@ -247,4 +247,4 @@ Describe "Select-Object DRT basic functionality" -Tags DRT{ $results.Count | Should Be 1 $results[0] | Should Be "3" } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-String.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-String.Tests.ps1 index 7a6b2456c0..9277788c25 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-String.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-String.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Select-String" { +Describe "Select-String" -Tags "CI" { $nl = [Environment]::NewLine $currentDirectory = $pwd.Path Context "String actions" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-XML.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-XML.Tests.ps1 index 5eff5b3595..7555e3bd31 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-XML.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-XML.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "Select-XML DRT Unit Tests" -Tags DRT{ +Describe "Select-XML DRT Unit Tests" -Tags "CI" { BeforeAll { $testfile = Join-Path -Path $TestDrive -ChildPath "testfile.xml" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Alias.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Alias.Tests.ps1 index 0865a27df4..70ff36b707 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Alias.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Alias.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "Set-Alias DRT Unit Tests" -Tags DRT{ +Describe "Set-Alias DRT Unit Tests" -Tags "CI" { It "Set-Alias Invalid Scope Name should throw PSArgumentException"{ try { Set-Alias -Name "ABCD" -Value "foo" -Scope "bogus" @@ -83,7 +83,7 @@ Describe "Set-Alias DRT Unit Tests" -Tags DRT{ } } -Describe "Set-Alias" { +Describe "Set-Alias" -Tags "CI" { Mock Get-Date { return "Friday, October 30, 2015 3:38:08 PM" } It "Should be able to set alias without error" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-PSBreakpoint.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-PSBreakpoint.Tests.ps1 index 6b580d6362..bfc4445d9f 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-PSBreakpoint.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-PSBreakpoint.Tests.ps1 @@ -1,6 +1,6 @@ $ps = Join-Path -Path $PsHome -ChildPath "powershell" -Describe "Set-PSBreakpoint DRT Unit Tests" -Tags DRT { +Describe "Set-PSBreakpoint DRT Unit Tests" -Tags "CI" { #Set up $scriptFileName = Join-Path $TestDrive -ChildPath breakpointTestScript.ps1 $scriptFileNameBug = Join-Path -Path $TestDrive -ChildPath SetPSBreakpointTests.ExposeBug154112.ps1 @@ -189,7 +189,7 @@ set-psbreakpoint -command foo Remove-Item -Path $scriptFileNameBug -Force } -Describe "Set-PSBreakpoint" { +Describe "Set-PSBreakpoint" -Tags "CI" { # Set up test script $testScript = Join-Path -Path $PSScriptRoot -ChildPath psbreakpointtestscript.ps1 diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Variable.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Variable.Tests.ps1 index 9b12fb010b..835fbc0a9f 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Variable.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Variable.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "Set-Variable DRT Unit Tests" -Tags DRT{ +Describe "Set-Variable DRT Unit Tests" -Tags "CI" { It "Set-Variable normal variable Name should works"{ Set-Variable foo bar $var1=Get-Variable -Name foo @@ -161,7 +161,7 @@ Describe "Set-Variable DRT Unit Tests" -Tags DRT{ } } -Describe "Set-Variable" { +Describe "Set-Variable" -Tags "CI" { It "Should create a new variable with no parameters" { { Set-Variable testVar } | Should Not Throw } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Sort-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Sort-Object.Tests.ps1 index 4ed3ef43de..49b45d432a 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Sort-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Sort-Object.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Sort-Object" { +Describe "Sort-Object" -Tags "CI" { It "should be able to sort object in ascending with using Property switch" { { Get-ChildItem -Path $PSScriptRoot -Include *.ps1 -Recurse | Sort-Object -Property Length } | Should Not Throw @@ -20,7 +20,7 @@ } } -Describe "Sort-Object DRT Unit Tests" -Tags DRT{ +Describe "Sort-Object DRT Unit Tests" -Tags "CI" { It "Sort-Object with object array should work"{ $employee1 = [pscustomobject]@{"FirstName"="Eight"; "LastName"="Eight"; "YearsInMS"=8} $employee2 = [pscustomobject]@{"FirstName"="Eight"; "YearsInMS"=$null} @@ -221,4 +221,4 @@ Describe "Sort-Object DRT Unit Tests" -Tags DRT{ $results[1] | Should Be 2 $results[2] | Should Be 1 } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 index 42166de94c..513efab10e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Start-Sleep.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Start-Sleep DRT Unit Tests" -Tags DRT{ +Describe "Start-Sleep DRT Unit Tests" -Tags "CI" { It "Should be works properly when sleeping with Second" { $dtStart = [DateTime]::Now Start-Sleep -Seconds 1 @@ -17,7 +17,7 @@ Describe "Start-Sleep DRT Unit Tests" -Tags DRT{ } -Describe "Start-Sleep" { +Describe "Start-Sleep" -Tags "CI" { Context "Validate Start-Sleep works properly" { It "Should only sleep for at least 1 second" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Tee-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Tee-Object.Tests.ps1 index 5027acfca8..ded62786f0 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Tee-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Tee-Object.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Tee-Object" { +Describe "Tee-Object" -Tags "CI" { Context "Validate Tee-Object is correctly forking output" { @@ -20,7 +20,7 @@ Describe "Tee-Object" { } } -Describe "Tee-Object DRT Unit Tests" -Tags DRT { +Describe "Tee-Object DRT Unit Tests" -Tags "CI" { BeforeAll { $tempFile = Join-Path $TestDrive -ChildPath "TeeObjectTestsTempFile" } @@ -45,4 +45,4 @@ Describe "Tee-Object DRT Unit Tests" -Tags DRT { $results | Should Be $expected } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Trace-Command.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Trace-Command.Tests.ps1 index b1c7e6b125..6b04c30d19 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Trace-Command.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Trace-Command.Tests.ps1 @@ -1,5 +1,5 @@ # This came from monad/tests/ci/PowerShell/tests/Commands/Cmdlets/pester.utility.command.tests.ps1 -Describe "Trace-Command" -tags "P1", "RI" { +Describe "Trace-Command" -tags "Feature" { Context "Listner options" { BeforeAll { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-FormatData.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-FormatData.Tests.ps1 index b2153ba75e..547e788b1e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-FormatData.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-FormatData.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Update-FormatData" { +Describe "Update-FormatData" -Tags "CI" { BeforeAll { $path = Join-Path -Path $TestDrive -ChildPath "outputfile.ps1xml" @@ -27,7 +27,7 @@ Describe "Update-FormatData" { } } -Describe "Update-FormatData basic functionality" -Tags DRT{ +Describe "Update-FormatData basic functionality" -Tags "CI" { BeforeAll { $testfilename = "testfile.ps1xml" $testfile = Join-Path -Path $TestDrive -ChildPath $testfilename diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-TypeData.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-TypeData.Tests.ps1 index 4d3fce80ac..c5494e99b9 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-TypeData.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Update-TypeData.Tests.ps1 @@ -1,5 +1,5 @@ -Describe "Update-TypeData basic functionality" -Tags DRT{ +Describe "Update-TypeData basic functionality" -Tags "CI" { BeforeAll { $testfilename = "testfile.ps1xml" $testfile = Join-Path -Path $TestDrive -ChildPath $testfilename diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Wait-Event.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Wait-Event.Tests.ps1 index 8fc97a7368..3ce80a0dbd 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Wait-Event.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Wait-Event.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Wait-Event" { +Describe "Wait-Event" -Tags "CI" { Context "Validate Wait-Event is waiting for events" { It "Should time out when it does not receive a FakeEvent" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 index a92c5c112b..3760818e80 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 @@ -143,7 +143,7 @@ function GetTestData return $body } -Describe "Invoke-WebRequest tests" { +Describe "Invoke-WebRequest tests" -Tags "Feature" { # Validate the output of Invoke-WebRequest # @@ -381,7 +381,7 @@ Describe "Invoke-WebRequest tests" { } -Describe "Invoke-RestMethod tests" { +Describe "Invoke-RestMethod tests" -Tags "Feature" { It "Invoke-RestMethod returns User-Agent" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Error.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Error.Tests.ps1 index 0e0e13e910..d327a491a7 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Error.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Error.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Write-Error DRT Unit Tests" -Tags DRT{ +Describe "Write-Error DRT Unit Tests" -Tags "CI" { It "Should be works with command: write-error myerrortext" { $e = Write-Error myerrortext 2>&1 $e | Should Not BeNullOrEmpty @@ -80,7 +80,7 @@ Describe "Write-Error DRT Unit Tests" -Tags DRT{ } } -Describe "Write-Error" { +Describe "Write-Error" -Tags "CI" { It "Should be able to throw" { Write-Error "test throw" -ErrorAction SilentlyContinue | Should Throw } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Host.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Host.Tests.ps1 index ce59a43b12..b4890cf965 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Host.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Host.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Write-Host DRT Unit Tests" -Tags DRT { +Describe "Write-Host DRT Unit Tests" -Tags "CI" { BeforeAll { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Output.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Output.Tests.ps1 index ffc2df8580..ea57ad2959 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Output.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Output.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Write-Output DRT Unit Tests" -Tags DRT{ +Describe "Write-Output DRT Unit Tests" -Tags "CI" { It "Simple Write Object Test" { $objectWritten = 1, 2.2, @("John", "Smith", 10), "abc" $results = Write-Output $objectWritten @@ -20,7 +20,7 @@ Describe "Write-Output DRT Unit Tests" -Tags DRT{ } } -Describe "Write-Output" { +Describe "Write-Output" -Tags "CI" { $testString = $testString Context "Input Tests" { It "Should allow piped input" { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1 index fb660b6339..fb0d7fe98e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Progress.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Write-Progress DRT Unit Tests" -Tags DRT{ +Describe "Write-Progress DRT Unit Tests" -Tags "CI" { It "Should be able to throw exception when missing mandatory parameters" { try { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Stream.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Stream.Tests.ps1 index 9f0bff4c42..4c52d3e045 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Stream.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Stream.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Stream writer tests" { +Describe "Stream writer tests" -Tags "CI" { $targetfile = "writeoutput.txt" # A custom function is defined here do handle the debug stream dealing with the confirm prompt diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Verbose.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Verbose.Tests.ps1 index 4c7fb96219..155be64b7e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Verbose.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Verbose.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "Write-Verbose" { +Describe "Write-Verbose" -Tags "CI" { It "Should be able to call cmdlet without error" { { Write-Verbose -Message "test" -ErrorAction SilentlyContinue } | Should Not Throw } @@ -26,4 +26,4 @@ Describe "Write-Verbose" { $(Write-Verbose -Message "test" -Verbose:$true) 4>&1 | Should Be "test" } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/XMLCommand.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/XMLCommand.Tests.ps1 index c8a1969209..d8a8511455 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/XMLCommand.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/XMLCommand.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "XmlCommand DRT basic functionality Tests" -Tags DRT{ +Describe "XmlCommand DRT basic functionality Tests" -Tags "CI" { BeforeAll { if(-not ('IsHiddenTestType' -as "type")) diff --git a/test/powershell/Modules/PSReadLine/PSReadLine.Tests.ps1 b/test/powershell/Modules/PSReadLine/PSReadLine.Tests.ps1 index 0173b91695..aa0842b8ad 100644 --- a/test/powershell/Modules/PSReadLine/PSReadLine.Tests.ps1 +++ b/test/powershell/Modules/PSReadLine/PSReadLine.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "PSReadLine" { +Describe "PSReadLine" -tags "CI" { BeforeAll { if (Get-Module PSReadLine) { $originalEditMode = (Get-PSReadLineOption).EditMode diff --git a/test/powershell/Modules/PackageManagement/Find-PackageProvider.Tests.ps1 b/test/powershell/Modules/PackageManagement/Find-PackageProvider.Tests.ps1 index ee81886e91..3504202460 100644 --- a/test/powershell/Modules/PackageManagement/Find-PackageProvider.Tests.ps1 +++ b/test/powershell/Modules/PackageManagement/Find-PackageProvider.Tests.ps1 @@ -17,7 +17,7 @@ $InternalGallery = "https://dtlgalleryint.cloudapp.net/api/v2/" # ------------------------------------------------------------------------------ # Actual Tests: -Describe "find-packageprovider" -Tags @('BVT', 'DRT'){ +Describe "find-packageprovider" -Tags "Feature" { #make sure the package repository exists $a=Get-PackageSource -force| select Location, ProviderName @@ -132,7 +132,7 @@ Describe "find-packageprovider" -Tags @('BVT', 'DRT'){ } -Describe "Find-Package With FilterOnTag" -Tags @('BVT', 'DRT'){ +Describe "Find-Package With FilterOnTag" -Tags "Feature" { it "EXPECTED: Find a package with FilterOnTag" { @@ -160,7 +160,7 @@ Describe "Find-Package With FilterOnTag" -Tags @('BVT', 'DRT'){ } } -Describe "Find-PackageProvider with Versions" -Tags @('BVT', 'DRT') { +Describe "Find-PackageProvider with Versions" -Tags "Feature" { <# Nuget 2.8.5.127 2.8.5.122 @@ -184,7 +184,7 @@ Describe "Find-PackageProvider with Versions" -Tags @('BVT', 'DRT') { -Describe "find-packageprovider Error Cases" -Tags @('BVT', 'DRT') { +Describe "find-packageprovider Error Cases" -Tags "Feature" { AfterAll { $x =Get-PackageSource -Name OneGetTestSource -ErrorAction SilentlyContinue -WarningAction SilentlyContinue diff --git a/test/powershell/Modules/PackageManagement/Get-PackageProvider.Tests.ps1 b/test/powershell/Modules/PackageManagement/Get-PackageProvider.Tests.ps1 index 37f71d437e..7a1f79558b 100644 --- a/test/powershell/Modules/PackageManagement/Get-PackageProvider.Tests.ps1 +++ b/test/powershell/Modules/PackageManagement/Get-PackageProvider.Tests.ps1 @@ -16,7 +16,7 @@ # ------------------------------------------------------------------------------ # Actual Tests: -Describe "get-packageprovider" -Tags @('BVT', 'DRT'){ +Describe "get-packageprovider" -Tags "CI" { It "lists package providers installed" { $x = (get-packageprovider -name "nuget").name | should match "nuget" @@ -72,7 +72,7 @@ Describe "get-packageprovider" -Tags @('BVT', 'DRT'){ } -Describe "Get-PackageProvider with list" -Tags @('BVT', 'DRT'){ +Describe "Get-PackageProvider with list" Tags "CI" { It "lists package providers installed" { $x = (Get-PackageProvider).Count -gt 1 | should be $true diff --git a/test/powershell/Modules/PackageManagement/Import-PackageProvider.Tests.ps1 b/test/powershell/Modules/PackageManagement/Import-PackageProvider.Tests.ps1 index a8917c9a8c..ec742f7213 100644 --- a/test/powershell/Modules/PackageManagement/Import-PackageProvider.Tests.ps1 +++ b/test/powershell/Modules/PackageManagement/Import-PackageProvider.Tests.ps1 @@ -40,7 +40,7 @@ Register-PackageSource -Name $InternalSource -Location $InternalGallery -Provide # ------------------------------------------------------------------------------ # Actual Tests: -Describe "import-packageprovider" -Tags @('BVT', 'DRT'){ +Describe "import-packageprovider" -Tags "Feature" { It "Import -force 'PowerShellGet', a builtin package provider, Expect succeed" { #avoid popup for installing nuget-any.exe @@ -159,7 +159,7 @@ Describe "import-packageprovider" -Tags @('BVT', 'DRT'){ -Describe "import-packageprovider Error Cases" -Tags @('BVT', 'DRT'){ +Describe "import-packageprovider Error Cases" -Tags "Feature" { It "Expected error when importing wildcard chars 'OneGetTest*" { $Error.Clear() @@ -225,7 +225,7 @@ Describe "import-packageprovider Error Cases" -Tags @('BVT', 'DRT'){ } -Describe "Import-PackageProvider with OneGetTest that has 3 versions: 1.1, 3.5, and 9.9." -Tags @('BVT', 'DRT') { +Describe "Import-PackageProvider with OneGetTest that has 3 versions: 1.1, 3.5, and 9.9." -Tags "Feature" { It "EXPECTED: success 'import OneGetTest -requiredVersion 3.5'" -Skip { powershell '(Import-packageprovider -name OneGetTest -requiredVersion 3.5 -WarningAction SilentlyContinue).Version.ToString()' | should match "3.5.0.0" @@ -344,7 +344,7 @@ Describe "Import-PackageProvider with OneGetTest that has 3 versions: 1.1, 3.5, } } -Describe "Import-PackageProvider with OneGetTestProvider that has 2 versions: 4.5, 6.1" -Tags @('BVT', 'DRT') { +Describe "Import-PackageProvider with OneGetTestProvider that has 2 versions: 4.5, 6.1" -Tags "Feature" { # install onegettestprovider # Not working yet since powershellget not working # Install-PackageProvider -Name OneGetTestProvider -RequiredVersion 4.5.0.0 -Source $InternalGallery @@ -397,4 +397,4 @@ Describe "Import-PackageProvider with OneGetTestProvider that has 2 versions: 4. Import-PackageProvider -Name OneGetTestProvider -MaximumVersion 5.0 -Force; (Get-PackageProvider OneGetTestProvider).Version.ToString() | should match '4.5.0.0' } -} \ No newline at end of file +} diff --git a/test/powershell/Modules/PackageManagement/Install-PackageProvider.Tests.ps1 b/test/powershell/Modules/PackageManagement/Install-PackageProvider.Tests.ps1 index 045728bcfa..d4d0ef2cfe 100644 --- a/test/powershell/Modules/PackageManagement/Install-PackageProvider.Tests.ps1 +++ b/test/powershell/Modules/PackageManagement/Install-PackageProvider.Tests.ps1 @@ -41,7 +41,7 @@ Register-PackageSource -Name $InternalSource2 -Location $InternalGallery2 -Provi # ------------------------------------------------------------------------------ # Actual Tests: -Describe "install-packageprovider" -Tags @('BVT', 'DRT') { +Describe "install-packageprovider" -Tags "Feature" { <# BeforeEach { @@ -129,7 +129,7 @@ Describe "install-packageprovider" -Tags @('BVT', 'DRT') { } <# Don't need this test since we are not boostraping -Describe "install-packageprovider with local source" -Tags @('BVT', 'DRT') { +Describe "install-packageprovider with local source" -Tags "Feature" { BeforeAll{ if( test-path $destination ) { @@ -242,7 +242,7 @@ Describe "install-packageprovider with local source" -Tags @('BVT', 'DRT') { } #> -Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){ +Describe "Install-Save-Package with multiple sources" -Tags "Feature" { $destination = Join-Path $TestDrive "installpp" It "install-package with array of registered sources with a single provider, Expect succeed" -Pending { @@ -453,7 +453,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){ } } } - Describe "install-packageprovider with Whatif" -Tags @('BVT', 'DRT'){ + Describe "install-packageprovider with Whatif" -Tags "Feature" { # make sure that packagemanagement is loaded #import-packagemanagement @@ -509,7 +509,7 @@ Describe "Install-Save-Package with multiple sources" -Tags @('BVT', 'DRT'){ } } -Describe "install-packageprovider with Scope" -Tags @('BVT', 'DRT'){ +Describe "install-packageprovider with Scope" -Tags "Feature" { # PENDING a lot of these tests because jobs are broken on OPS BeforeAll { @@ -608,7 +608,7 @@ Describe "install-packageprovider with Scope" -Tags @('BVT', 'DRT'){ $a | ?{ $_.name -eq "tsdprovider" } | should not BeNullOrEmpty } } -Describe "install-PackageProvider with Versions" -Tags @('BVT', 'DRT') { +Describe "install-PackageProvider with Versions" -Tags "Feature" { # make sure that packagemanagement is loaded <# Nuget 2.8.5.127 @@ -656,7 +656,7 @@ Describe "install-PackageProvider with Versions" -Tags @('BVT', 'DRT') { } -Describe "Get-package with mulitiple providers" -Tags @('BVT', 'DRT'){ +Describe "Get-package with mulitiple providers" -Tags "Feature" { It "Get-package with multiple providers" -Pending { @@ -677,7 +677,7 @@ Describe "Get-package with mulitiple providers" -Tags @('BVT', 'DRT'){ } -Describe "install-packageprovider Error Cases" -Tags @('BVT', 'DRT') { +Describe "install-packageprovider Error Cases" -Tags "Feature" { AfterAll { Unregister-PackageSource -Name OneGetTestSource -Verbose -ErrorAction SilentlyContinue diff --git a/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 b/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 index 54dd7df371..4223781ed9 100644 --- a/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 +++ b/test/powershell/Modules/PackageManagement/Nuget.Tests.ps1 @@ -52,7 +52,7 @@ function SkipVersion([version]$minVersion,[version]$maxVersion) { return $true } -Describe "Find, Get, Save, and Install-Package with Culture" -Tags @('BVT', 'DRT'){ +Describe "Find, Get, Save, and Install-Package with Culture" -Tags "Feature" { <# (get-packageprovider -name "OneGetTest" -list).name | should match "OneGetTest" @@ -96,7 +96,7 @@ Describe "Find, Get, Save, and Install-Package with Culture" -Tags @('BVT', 'DRT } } -Describe "Event Test" -Tags @('BVT', 'DRT') { +Describe "Event Test" -Tags "Feature" { it "EXPECTED: install a package should raise event" -Skip:(-not $IsWindows) { @@ -281,7 +281,7 @@ Describe "Event Test" -Tags @('BVT', 'DRT') { } } -Describe "Find-Package" -Tags @('CI','SLOW'){ +Describe "Find-Package" -Tags @('Feature','SLOW'){ it "EXPECTED: Find a package with a location created via new-psdrive" -Skip:(-not $IsWindows) { $Error.Clear() New-PSDrive -Name xx -PSProvider FileSystem -Root $TestDrive -warningaction:silentlycontinue -ea silentlycontinue > $null; find-package -name "fooobarrr" -provider nuget -source xx:\ -warningaction:silentlycontinue -ea silentlycontinue @@ -486,7 +486,7 @@ Describe "Find-Package" -Tags @('CI','SLOW'){ } } -Describe Save-Package -Tags @('BVT', 'DRT'){ +Describe Save-Package -Tags "Feature" { # make sure packagemanagement is loaded $destination = $TestDrive @@ -726,7 +726,7 @@ Describe Save-Package -Tags @('BVT', 'DRT'){ } } -Describe "save-package with Whatif" -Tags @('BVT', 'DRT'){ +Describe "save-package with Whatif" -Tags "Feature" { # make sure that packagemanagement is loaded #import-packagemanagement $tempDir = Join-Path $TestDrive "nugettesttempfolder" @@ -737,7 +737,7 @@ Describe "save-package with Whatif" -Tags @('BVT', 'DRT'){ if (-not (Test-Path $tempDir)) { - md $tempDir | Out-Null + new-item -type directory $tempDir | Out-Null } } @@ -932,7 +932,7 @@ Describe "install-package with Scope" -Tags @('BVT', 'DRT'){ } } -Describe Install-Package -Tags @('BVT', 'DRT'){ +Describe Install-Package -Tags "Feature" { $destination = Join-Path $TestDrive "NugetPackages" $relativetestpath = Join-Path $TestDrive "RelativeTestPath" @@ -1115,7 +1115,7 @@ Describe Install-Package -Tags @('BVT', 'DRT'){ } } -Describe Get-Package -Tags @('BVT', 'DRT'){ +Describe Get-Package -Tags "Feature" { $destination = Join-Path $TestDrive "NuGetPackages" it "EXPECTED: Gets The 'Adept.NugetRunner' Package After Installing" { @@ -1167,7 +1167,7 @@ Describe Get-Package -Tags @('BVT', 'DRT'){ } } -Describe Uninstall-Package -Tags @('BVT', 'DRT'){ +Describe Uninstall-Package -Tags "Feature" { $destination = Join-Path $TestDrive "NuGetPackages" it "EXPECTED: Uninstalls The Right version of 'Jquery'" { @@ -1287,7 +1287,7 @@ Describe Uninstall-Package -Tags @('BVT', 'DRT'){ } } -Describe Get-PackageProvider -Tags @('BVT', 'DRT'){ +Describe Get-PackageProvider -Tags "Feature" { it "EXPECTED: Gets The 'Nuget' Package Provider" -Skip { (get-packageprovider -name $nuget -force).name | should be $nuget @@ -1301,7 +1301,7 @@ Describe Get-PackageProvider -Tags @('BVT', 'DRT'){ } } -Describe Get-PackageSource -Tags @('BVT', 'DRT') { +Describe Get-PackageSource -Tags "Feature" { $destination = Join-Path $TestDrive "NuGetPackages" BeforeAll{ @@ -1346,7 +1346,7 @@ Describe Get-PackageSource -Tags @('BVT', 'DRT') { } } -Describe Register-PackageSource -Tags @('BVT', 'DRT'){ +Describe Register-PackageSource -Tags "Feature" { $Destination = Join-Path $TestDrive "NUgettest" it "EXPECTED: Register a package source with a location created via new-psdrive" -Skip { @@ -1454,7 +1454,7 @@ Describe Register-PackageSource -Tags @('BVT', 'DRT'){ } } -Describe Unregister-PackageSource -Tags @('BVT', 'DRT'){ +Describe Unregister-PackageSource -Tags "Feature" { it "EXPECTED: Unregisters The 'NugetTest.org' Package Source" { (register-packagesource -name "nugettest.org" -provider $nuget -location $source) @@ -1476,7 +1476,7 @@ Describe Unregister-PackageSource -Tags @('BVT', 'DRT'){ } } -Describe Set-PackageSource -Tags @('BVT', 'DRT'){ +Describe Set-PackageSource -Tags "Feature" { it "EXPECTED: Sets The 'NugetTest' Package Source to 'NugetTest2'" { (register-packagesource -name "nugettest" -provider $nuget -location "https://www.nuget.org/api/v2") @@ -1518,7 +1518,7 @@ Describe Set-PackageSource -Tags @('BVT', 'DRT'){ } } -Describe Check-ForCorrectError -Tags @('BVT', 'DRT'){ +Describe Check-ForCorrectError -Tags "Feature" { it "EXPECTED: returns a correct error for find-package with dynamic parameter when package source is wrong" { $Error.Clear() @@ -1534,7 +1534,7 @@ Describe Check-ForCorrectError -Tags @('BVT', 'DRT'){ } -Describe Test-Proxy -Tags @('BVT', 'DRT') { +Describe Test-Proxy -Tags "Feature" { It "EXPECTED: Register package source using proxy" -Skip { try { diff --git a/test/powershell/SDK/Json.Tests.ps1 b/test/powershell/SDK/Json.Tests.ps1 index 978f11f643..9040cafde6 100644 --- a/test/powershell/SDK/Json.Tests.ps1 +++ b/test/powershell/SDK/Json.Tests.ps1 @@ -1,6 +1,6 @@ # http://www.newtonsoft.com/json/help/html/ParsingLINQtoJSON.htm -Describe "Json.NET LINQ Parsing" { +Describe "Json.NET LINQ Parsing" -tags "CI" { BeforeEach { $jsonFile = Join-Path -Path (Join-Path $PSScriptRoot -ChildPath assets) -ChildPath TestJson.json $jsonData = (Get-Content $jsonFile | Out-String) diff --git a/test/powershell/SDK/PSDebugging.Tests.ps1 b/test/powershell/SDK/PSDebugging.Tests.ps1 index 941fcfbab8..17a9c1cf94 100644 --- a/test/powershell/SDK/PSDebugging.Tests.ps1 +++ b/test/powershell/SDK/PSDebugging.Tests.ps1 @@ -1,6 +1,6 @@ using namespace System.Diagnostics -Describe "PowerShell Command Debugging" { +Describe "PowerShell Command Debugging" -tags "CI" { BeforeAll { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" diff --git a/test/powershell/Scripting/NativeExecution/NativeLinuxCommands.Tests.ps1 b/test/powershell/Scripting/NativeExecution/NativeLinuxCommands.Tests.ps1 index b8beced83b..a8a38ab6d5 100644 --- a/test/powershell/Scripting/NativeExecution/NativeLinuxCommands.Tests.ps1 +++ b/test/powershell/Scripting/NativeExecution/NativeLinuxCommands.Tests.ps1 @@ -1,4 +1,4 @@ -Describe "NativeLinuxCommands" { +Describe "NativeLinuxCommands" -tags "CI" { It "Should return a type of System.Object for hostname cmdlet" { (hostname).GetType().BaseType | Should Be 'System.Object' (hostname).GetType().Name | Should Be String @@ -17,7 +17,7 @@ Describe "NativeLinuxCommands" { } } -Describe "Scripts with extensions" { +Describe "Scripts with extensions" -tags "CI" { BeforeAll { $data = "Hello World" Setup -File testScript.ps1 -Content "'$data'" diff --git a/test/powershell/engine/BasicEngine.Tests.ps1 b/test/powershell/engine/BasicEngine.Tests.ps1 index 73e4cf705b..e51c778b3b 100644 --- a/test/powershell/engine/BasicEngine.Tests.ps1 +++ b/test/powershell/engine/BasicEngine.Tests.ps1 @@ -1,4 +1,4 @@ -Describe 'Basic engine APIs' { +Describe 'Basic engine APIs' -Tags "CI" { Context 'powershell::Create' { It 'can create default instance' { [powershell]::Create() | Should Not Be $null diff --git a/test/powershell/engine/ExecutionPolicy.Tests.ps1 b/test/powershell/engine/ExecutionPolicy.Tests.ps1 index f4ab416061..d829393c46 100644 --- a/test/powershell/engine/ExecutionPolicy.Tests.ps1 +++ b/test/powershell/engine/ExecutionPolicy.Tests.ps1 @@ -8,7 +8,7 @@ if(-not $IsWindows) return } -Describe "Help work with ExecutionPolicy Restricted " { +Describe "Help work with ExecutionPolicy Restricted " -Tags "Feature" { # Validate that 'Get-Help Get-Disk' returns one result when the execution policy is 'Restricted' on Nano # From an internal bug - [Regression] Get-Help returns multiple matches when there is an exact match @@ -36,7 +36,7 @@ Describe "Help work with ExecutionPolicy Restricted " { } } -Describe "Validate ExecutionPolicy cmdlets in PowerShell" -Tags "Innerloop", "BVT" { +Describe "Validate ExecutionPolicy cmdlets in PowerShell" -Tags "CI" { BeforeAll { @@ -852,7 +852,7 @@ ZoneId=$FileType } -Describe "Validate that 'ConvertTo-SecureString -Key' and 'ConvertFrom-SecureString -Key' work on NanoServer and IoT" -Tags "Innerloop", "BVT" { +Describe "Validate that 'ConvertTo-SecureString -Key' and 'ConvertFrom-SecureString -Key' work on NanoServer and IoT" -Tags "CI" { It "ConvertTo-SecureString should return back the SecureString that was constructed from 'ValidateConvertSecureString'." -skip:(-not $IsWindows) {