Skip to content

Commit f25b4ae

Browse files
authored
feat: add krew and prebuilt-ripgrep gh-r zunit tests (zdharma-continuum#267)
Signed-off-by: Vladislav Doster <[email protected]>
1 parent c703290 commit f25b4ae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/gh-r.zunit

+10
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,11 @@ run zinit for @kopia/kopia; assert $state equals 0
412412
local kopia="$ZBIN/kopia"; assert "$kopia" is_executable
413413
$kopia --version; assert $state equals 0
414414
}
415+
@test 'krew' { # Build and deploy Go applications on Kubernetes
416+
run zinit lbin'!krew* -> krew' for @kubernetes-sigs/krew; assert $state equals 0
417+
local krew="$ZBIN/krew"; assert "$krew" is_executable
418+
$krew version; assert $state equals 0
419+
}
415420
@test 'lazygit' { # simple terminal UI for git commands
416421
run zinit for jesseduffield/lazygit; assert $state equals 0
417422
local lazygit="$ZBIN/lazygit"; assert "$lazygit" is_executable
@@ -550,6 +555,11 @@ $kopia --version; assert $state equals 0
550555
local rg="$ZBIN/rg"; assert "$rg" is_executable
551556
$rg --version; assert $state equals 0
552557
}
558+
@test 'ripgrep-prebuilt' { # ripgrep recursively searches directories for a regex pattern while respecting your gitignore
559+
run zinit lbin'!**/rg' for @BurntSushi/ripgrep; assert $state equals 0
560+
local rg="$ZBIN/rg"; assert "$rg" is_executable
561+
$rg --version; assert $state equals 0
562+
}
553563
@test 'rip' { # A safe and ergonomic alternative to rm
554564
run zinit for @nivekuil/rip; assert $state equals 0
555565
local rip="$ZBIN/rip"; assert "$rip" is_executable

0 commit comments

Comments
 (0)