fixed pipx packages tests

This commit is contained in:
Nikita Bykov
2020-10-21 15:50:53 +03:00
parent edff9f791b
commit 00bb4818ce
6 changed files with 11 additions and 8 deletions

View File

@@ -3,10 +3,6 @@ Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1"
$os = Get-OSVersion
Describe "Linters" {
It "yamllint" {
"yamllint --version" | Should -ReturnZeroExitCode
}
It "SwiftLint" -Skip:($os.IsHighSierra) {
"swiftlint version" | Should -ReturnZeroExitCode
}

View File

@@ -0,0 +1,7 @@
Describe "PipxPackages" {
$pipxToolset = Get-ToolsetValue "pipx"
$testCases = $pipxToolset | ForEach-Object { @{package = $_.package; cmd = $_.cmd} }
It "<package>" -TestCases $testCases {
"$cmd" | Should -ReturnZeroExitCode
}
}

View File

@@ -198,7 +198,7 @@
"pipx": [
{
"package": "yamllint",
"cmd": "yamllint"
"cmd": "yamllint --version"
}
]
}

View File

@@ -258,7 +258,7 @@
"pipx": [
{
"package": "yamllint",
"cmd": "yamllint"
"cmd": "yamllint --version"
}
]
}

View File

@@ -167,7 +167,7 @@
"pipx": [
{
"package": "yamllint",
"cmd": "yamllint"
"cmd": "yamllint --version"
}
]
}

View File

@@ -92,7 +92,7 @@
"pipx": [
{
"package": "yamllint",
"cmd": "yamllint"
"cmd": "yamllint --version"
}
]
}