mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
* Pester Tests Approach implementation. * changes for netPath
This commit is contained in:
14
images/win/scripts/Tests/Miniconda.Tests.ps1
Normal file
14
images/win/scripts/Tests/Miniconda.Tests.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user