setup tests

This commit is contained in:
2026-01-14 12:45:31 +05:30
parent 6cfc82b3c6
commit 308a74b5fb
3 changed files with 20 additions and 0 deletions

15
tests/test.bats Normal file
View File

@@ -0,0 +1,15 @@
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
}