Bash Automated Testing System: https://github.com/Wuodan/bats-core
7.3K
Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected.
A Bats test file is a Bash script with special syntax for defining test cases. Under the hood, each test case is just a function with a description.
#!/usr/bin/env bats
@test "addition using bc" {
result="$(echo 2+2 | bc)"
[ "$result" -eq 4 ]
}
@test "addition using dc" {
result="$(echo 2 2+p | dc)"
[ "$result" -eq 4 ]
}
Content type
Image
Digest
sha256:4c655fff3…
Size
20 MB
Last updated
11 days ago
docker pull wuodan/bats:1.14.1-beta09-no-faccessat2