mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 13:27:10 -07:00
parent
7c0ece3dfb
commit
4c15f15ced
8 changed files with 135 additions and 10 deletions
|
@ -6,14 +6,27 @@ Feature: Corner Cases
|
|||
Then environment variable SDKMAN_DIR has the original value
|
||||
|
||||
Scenario: sdk initialized for another user in this shell
|
||||
# Use any directory outside of the user's home directory
|
||||
Given environment variable SDKMAN_DIR is set to "/"
|
||||
When a new Fish shell is launched
|
||||
Then environment variable SDKMAN_DIR has the original value
|
||||
|
||||
# TODO: add test that fails if `test` in conf.d/sdk.fish:80 errors (cf issue #28 et al.)
|
||||
Scenario: Custom installation path
|
||||
Given SDKMAN! is installed at /tmp/sdkman
|
||||
And fish config file config_sdk.fish exists with content
|
||||
"""
|
||||
set -g __sdkman_custom_dir /tmp/sdkman
|
||||
"""
|
||||
When we run "sdk version" in Fish
|
||||
Then the exit code is 0
|
||||
And the output contains "SDKMAN!"
|
||||
And environment variable SDKMAN_DIR has value "/tmp/sdkman"
|
||||
And environment variable ANT_HOME has value "/tmp/sdkman/candidates/ant/current"
|
||||
|
||||
@pending # cf. issue #10
|
||||
Scenario: PATH should contain only valid paths
|
||||
Given candidate kscript is installed
|
||||
When candidate kscript is uninstalled
|
||||
Then environment variable PATH cannot contain "sdkman/candidates/kscript/"
|
||||
|
||||
# TODO: add test that fails if `test` in conf.d/sdk.fish:80 errors (cf issue #28 et al.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue