Files
runner-images-sangeeth/images/win/scripts/Tests/Miniconda.Tests.ps1
Darii Nurgaleev b47ba413c9 Replace current validates with pester testing approach #3 (#1230)
* Pester Tests Approach implementation.

* changes for netPath
2020-07-17 11:29:03 +03:00

14 lines
437 B
PowerShell

Describe "Miniconda" {
It "Miniconda Environment variables is set. " {
${env:CONDA} | Should -Not -BeNullOrEmpty
}
It "Miniconda $env:CONDA\<PathTest> " -TestCases @(
@{ PathTest = "python.exe" }
@{ PathTest = "Scripts\conda.exe" }
) {
$condaPath = Join-Path ${env:CONDA} $PathTest
$condaPath | Should -Exist
"$condaPath --version" | Should -ReturnZeroExitCode
}
}