Add simple tests for kubectx/kubens -h/--help (#105)

This commit is contained in:
Philippe MARTIN 2018-12-22 22:02:20 +01:00 committed by Ahmet Alp Balkan
parent 4a7d7cf025
commit 2b5bf4e429
2 changed files with 26 additions and 0 deletions

13
test/kubectx.sh Normal file
View 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
View 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 ]
}