Files
args/tests/test.bats
2026-01-14 12:45:31 +05:30

16 lines
252 B
Bash

setup(){
export PATH="${PWD}:${PATH}"
load 'test_helper/bats-support/load'
load 'test_helper/bats-assert/load'
}
@test "command found" {
run command -v args
assert_output --partial args
}
@test "no args? you fail." {
run args
assert_failure
}