Skip to content

Commit

Permalink
test(functions): adds case for add_ohmyzsh_plugins (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyoungstudios authored Sep 30, 2024
1 parent a3a5da5 commit 9ca6e49
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/resources/functions/add_ohmyzsh_plugins/runners.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[common]
setup-tag = "setup"

[[common.test.commands]]

command = "bash"
arguments = [
"-ceu",
"cat ~/.zshrc",
]
assert-stdout-contains = "plugins=(\n git\n copyfile\n ### NEW PLUGINS HERE ###\n)\n"

[case.linux]
os = "ubuntu-22.04"
image = "phusion/baseimage:jammy-1.0.4"

[case.linux.test]

assert-install-names = ["apt_get_packages", "ohmyzsh", "add_ohmyzsh_plugins"]

[case.macos]
os = "macos-13"

[case.macos.test]

assert-install-names = ["ohmyzsh", "add_ohmyzsh_plugins"]
17 changes: 17 additions & 0 deletions test/resources/functions/add_ohmyzsh_plugins/test_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[ apt_get_packages ]
tags = [ "setup" ]
options = [
"--no-install-recommends",
"git",
"zsh"
]

[ ohmyzsh ]
tags = [ "setup" ]
options = []

[ add_ohmyzsh_plugins ]
options = [
"git",
"copyfile"
]

0 comments on commit 9ca6e49

Please sign in to comment.