changes tags for tests

Start using tags CI, Feature, Scenario
This commit is contained in:
James Truher committed 2016-07-27 12:06:51 -07:00
1 parent 1349372b39
commit 9e225ccae2
145 files changed
+248 -248

No files matched your search

@@ -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
@@ -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 }
@@ -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;"
}
}
}
}
@@ -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,
@@ -1,4 +1,4 @@
Describe 'NestedModules' -Tags "DRT" {
Describe 'NestedModules' -Tags "CI" {
Import-Module $PSScriptRoot\..\LanguageTestSupport.psm1
@@ -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 {}
@@ -2,7 +2,7 @@
# Copyright (c) Microsoft Corporation, 2015
#
Describe 'enums' -Tags "DRT" {
Describe 'enums' -Tags "CI" {
Context 'basic enums' {
enum E1
@@ -1,4 +1,4 @@
Describe "DotNetAPI" {
Describe "DotNetAPI" -Tags "CI" {
$posh_E = 2.718281828459045
$posh_pi = 3.14159265358979
@@ -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
}
@@ -1,4 +1,4 @@
Describe "ComparisonOperator" {
Describe "ComparisonOperator" -tag "CI" {
It "Should be $true for 1 -lt 2" {
1 -lt 2 | Should Be $true
}
@@ -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 = {
@@ -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 } }
@@ -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 {
@@ -1,4 +1,4 @@
Describe 'conversion syntax' -Tags "innerloop", "DRT" {
Describe 'conversion syntax' -Tags "CI" {
# these test suite covers ([<type>]<expression>).<method>() syntax.
# it mixes two purposes: casting and super-class method calls.
@@ -1,4 +1,4 @@
Describe "Redirection operator now supports encoding changes" {
Describe "Redirection operator now supports encoding changes" -Tags "CI" {
BeforeAll {
$asciiString = "abc"
@@ -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
@@ -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
@@ -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" {
#
# <Test>
# <TestType>DRT</TestType>
@@ -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" {
#
# <Test>
# <TestType>DRT</TestType>
@@ -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" {
#
# <Test>
# <TestType>DRT</TestType>
@@ -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" {
#
# <Test>
# <TestType>DRT</TestType>
@@ -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" {
#
# <Test>
# <TestType>DRT</TestType>
@@ -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" {
#
# <Test>
# <TestType>PriorityOne</TestType>
@@ -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" {
#
# <Test>
# <TestType>DRT</TestType>
@@ -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" {
#####################################################################################
#
# <Test>
@@ -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