[macOS] Pester tests invocation after install - 2. (#2429)

* [macOS] Fail Pester tests on error

* return it back

* added new tests

* added new tests for Macos part2

* fixed nitpicks

* vsmac changes

* remove toolcache fron high sierra
This commit is contained in:
Darii Nurgaleev
2021-01-20 14:11:00 +07:00
committed by GitHub
parent c47ccfbf9a
commit 03ce901f42
12 changed files with 74 additions and 53 deletions

View File

@@ -0,0 +1,37 @@
$os = Get-OSVersion
Describe "Rust" -Skip:($os.IsHighSierra) {
Context "Rust" {
It "Rustup is installed" {
"rustup --version" | Should -ReturnZeroExitCode
}
It "Rustc is installed" {
"rustc --version" | Should -ReturnZeroExitCode
}
}
Context "Cargo" {
It "Cargo is installed" {
"cargo --version" | Should -ReturnZeroExitCode
}
}
Context "Cargo dependencies" {
It "bindgen" {
"bindgen --version" | Should -ReturnZeroExitCode
}
It "cbindgen" {
"cbindgen --version" | Should -ReturnZeroExitCode
}
It "Cargo audit" {
"cargo audit --version" | Should -ReturnZeroExitCode
}
It "Cargo outdated" {
"cargo outdated --version" | Should -ReturnZeroExitCode
}
}
}