Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nyoungstudios committed Oct 14, 2024
1 parent 04bbc57 commit f5ca1c4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
30 changes: 29 additions & 1 deletion test/resources/functions/nvm/runners.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[common]
os = "ubuntu-24.04"
image = "phusion/baseimage:jammy-1.0.4"

[case.default]

[case.default.test]

assert-install-names = ["nvm"]
# assert-log-contains = ["Profile not found."]

[[case.default.test.commands]]

Expand All @@ -16,5 +18,31 @@ assert-stdout-contains = "nvm"
[[case.default.test.commands]]

command = "bash"
arguments = ["-ceu", "nvm --help"]
arguments = [
"-ceu",
"export NVM_DIR=\"$HOME/.config/nvm\"; export NVM_DIR=\"$HOME/.config/nvm\"; nvm --help",
]
assert-stdout-contains = "Node Version Manager (v0.40.1)"

[case.no-profile]

install-tag = "nvm-no-profile"

[case.no-profile.test]

assert-install-names = ["nvm+no-profile"]

[[case.no-profile.test.commands]]

command = "bash"
arguments = ["-ceu", "cat ~/.bashrc"]
assert-stdout-contains = "nvm"

[[case.no-profile.test.commands]]

command = "bash"
arguments = [
"-ceu",
"export NVM_DIR=\"$HOME/.config/nvm\"; export NVM_DIR=\"$HOME/.config/nvm\"; nvm --help",
]
assert-stdout-contains = "Node Version Manager (v0.40.1)"
6 changes: 6 additions & 0 deletions test/resources/functions/nvm/test_config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
[ nvm ]
options = []

[ "nvm+no-profile" ]
tags = ["nvm-no-profile"]
options = [
"0"
]

0 comments on commit f5ca1c4

Please sign in to comment.