mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-28 04:20:23 +08:00
[macOS] move Pester tests to separate files/contexts/describes (#2573)
* [macOS] Fail Pester tests on error * return it back * added all files for testing * common utils path changed * linux scripts shouldn't be touched
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
||||
Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" -DisableNameChecking
|
||||
|
||||
$os = Get-OSVersion
|
||||
|
||||
Describe "Node.js" {
|
||||
BeforeAll {
|
||||
$os = Get-OSVersion
|
||||
@@ -48,3 +50,15 @@ Describe "nvm" {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Describe "AppCenterCLI" {
|
||||
It "App Center CLI" {
|
||||
"appcenter --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Newman" -Skip:($os.IsHighSierra -or $os.IsMojave) {
|
||||
It "Newman" {
|
||||
"newman --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user