[Ubuntu] Migrate tests to Pester (#2340)

* Add Pester tests

* Fix incorrect merging

* Remove swift test from installing script

* Minor fix

* Remove Haskell tests from commons tests

* Fix selenium test

* Fix SVN test

* Fix pipx tests

* Debug

* Fix pipx packages test

* Skip pipx for 16.04
This commit is contained in:
Vladimir Safonkin
2020-12-29 10:02:46 +03:00
committed by GitHub
parent f58f2c1e02
commit 0a768b0726
17 changed files with 125 additions and 64 deletions

View File

@@ -27,4 +27,22 @@ Describe "PHP" {
It "Pecl" {
"pecl" | Should -ReturnZeroExitCode
}
}
}
Describe "Swift" {
It "swift" {
"swift --version" | Should -ReturnZeroExitCode
}
It "swiftc" {
"swiftc --version" | Should -ReturnZeroExitCode
}
}
Describe "PipxPackages" -Skip:(Test-IsUbuntu16) {
[array]$testCases = (Get-ToolsetContent).pipx | ForEach-Object { @{cmd = $_.cmd} }
It "<package>" -TestCases $testCases {
"$cmd --version" | Should -ReturnZeroExitCode
}
}