mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-07-21 02:29:04 +00:00
Add simple tests for kubectx/kubens -h/--help (#105)
This commit is contained in:
parent
4a7d7cf025
commit
2b5bf4e429
13
test/kubectx.sh
Normal file
13
test/kubectx.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
|
COMMAND=../kubectx
|
||||||
|
|
||||||
|
@test "--help should not fail" {
|
||||||
|
run ${COMMAND} --help
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "-h should not fail" {
|
||||||
|
run ${COMMAND} -h
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
13
test/kubens.sh
Normal file
13
test/kubens.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
|
COMMAND=../kubens
|
||||||
|
|
||||||
|
@test "--help should not fail" {
|
||||||
|
run ${COMMAND} --help
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
|
||||||
|
@test "-h should not fail" {
|
||||||
|
run ${COMMAND} -h
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user