mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
all tests are now marked with proper tag
also, update build.psm1 to be more flexible
This commit is contained in:
1 parent
362a807438
commit
a784149b36
8 files changed
+23
-10
No files matched your search
@@ -1,4 +1,4 @@
|
||||
Describe "Configuration file locations" -tags "CI" {
|
||||
Describe "Configuration file locations" -tags "CI","Slow" {
|
||||
|
||||
BeforeAll {
|
||||
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Describe "Read-Host" -Tags "CI" {
|
||||
Describe "Read-Host" -Tags "Slow","Feature" {
|
||||
Context "[Console]::ReadKey() implementation on non-Windows" {
|
||||
BeforeAll {
|
||||
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Describe 'Exceptions flow for classes' -Tags "DRT" {
|
||||
Describe 'Exceptions flow for classes' -Tags "CI" {
|
||||
|
||||
$canaryHashtable = @{}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ function Test-Completions
|
||||
{
|
||||
foreach ($test in $TestCases)
|
||||
{
|
||||
Describe $test.Description {
|
||||
Describe $test.Description -Tags "CI" {
|
||||
$hash = $Test.TestInput
|
||||
$results = Get-Completions @hash
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ $source = "http://www.nuget.org/api/v2/"
|
||||
|
||||
# Actual Tests:
|
||||
|
||||
Describe "Get-package" -Tags @('BVT', 'DRT'){
|
||||
Describe "Get-package" -Tags "Feature" {
|
||||
# make sure that packagemanagement is loaded
|
||||
It "EXPECTED: Get-package accepts array of strings for -providername parameter" -Skip {
|
||||
$x = (get-package -providername Programs,Msi)
|
||||
|
||||
@@ -72,7 +72,7 @@ Describe "get-packageprovider" -Tags "CI" {
|
||||
}
|
||||
|
||||
|
||||
Describe "Get-PackageProvider with list" Tags "CI" {
|
||||
Describe "Get-PackageProvider with list" -Tags "CI" {
|
||||
|
||||
It "lists package providers installed" {
|
||||
$x = (Get-PackageProvider).Count -gt 1 | should be $true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)" {
|
||||
Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)" -Tags "CI" {
|
||||
BeforeAll {
|
||||
$functionDefinitionFile = Join-Path -Path $TestDrive -ChildPath "functionDefinition.ps1"
|
||||
$functionDefinition = @'
|
||||
@@ -825,4 +825,4 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
|
||||
$_.FullyQualifiedErrorId | should be "ParseException"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user