forked from pester/Pester
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtests.bat has exit code. Spiking out test data container
- Loading branch information
Scott Muc
committed
Jan 20, 2011
1 parent
6c72ebc
commit 4984a3e
Showing
6 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path | ||
. "$pwd\..\Pester.ps1" | ||
|
||
Describe "Test-Report" { | ||
|
||
It "keeps a record of all the fixture descriptions" { | ||
$sut = Create-TestResultData | ||
|
||
$sut.AddDescription("Description") | ||
|
||
$sut.GetDescriptions().should.be("Description") | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function Create-TestResultData() | ||
{ | ||
return New-Module { | ||
|
||
$description_data = @{} | ||
|
||
function AddDescription($description) { | ||
$description_data[$description] = @{} | ||
} | ||
|
||
function GetDescriptions() { | ||
return [array] $description_data.keys | ||
} | ||
|
||
Export-ModuleMember -Variable * -Function * | ||
} -asCustomObject | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
$pwd = Split-Path -Parent $MyInvocation.MyCommand.Path | ||
|
||
Resolve-Path $pwd\Functions\*.ps1 | % { . $_.ProviderPath } | ||
Resolve-Path $pwd\Functions\*.ps1 | | ||
? { -not ($_.ProviderPath.Contains(".Tests.")) } | | ||
% { . $_.ProviderPath } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@PowerShell Set-ExecutionPolicy Unrestricted | ||
@PowerShell -NonInteractive -NoProfile -Command ".\Pester-Console.ps1" | ||
|
||
@echo off | ||
exit /B %errorlevel% |
This file was deleted.
Oops, something went wrong.