[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:
Darii Nurgaleev
2021-01-29 16:37:48 +07:00
committed by GitHub
parent 2ee29eddc1
commit f5b6afebd0
11 changed files with 264 additions and 204 deletions

View File

@@ -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
}
}