-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #965 from SubPointSolutions/dev
SPMeta2 1.3.0 beta build
- Loading branch information
Showing
69 changed files
with
3,395 additions
and
804 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
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
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,4 @@ | ||
|
||
# initial Pester install | ||
Write-Host "Checking Pester install..." -fore Green | ||
Install-Module -Name Pester -RequiredVersion 4.0.2 |
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,32 @@ | ||
|
||
Write-Host "Running pester regression..." | ||
$results = Invoke-Pester -Script Pester/regression.nuget.ps1 -PassThru -Quiet | ||
|
||
$failedCount = 0; | ||
$passedCount = 0; | ||
|
||
foreach($r in $results.TestResult) { | ||
|
||
Write-Host "- Test [$($r.Name)] with result:[$($r.Result)]" | ||
|
||
switch($r.Result) { | ||
"Failed" { | ||
$failedCount++ | ||
}; | ||
"Passed" { | ||
$passedCount++ | ||
}; | ||
} | ||
} | ||
|
||
Write-Host "- Failed count:[$failedCount]" | ||
Write-Host "- Passed count:[$passedCount]" | ||
|
||
if($failedCount -gt 0) { | ||
throw "[FAIL] Didn't pass Pester regression. Failed tests count:[$failedCount]" | ||
} | ||
else{ | ||
if($passedCount -le 0) { | ||
throw "[FAIL] Weird. No tests were passed. Check it, please?" | ||
} | ||
} |
Oops, something went wrong.