bats
bats copied to clipboard
Bash Automated Testing System
The following files demonstrate the issue: ~/work/Katas/bash/BashUnitTesting/test (master)$ cat test_helper.bash load 'helpers/mocks/stub' load 'helpers/bats-support/load' load 'helpers/bats-assert/load' :~/work/Katas/bash/BashUnitTesting/test (master)$ cat test1.bats #!/usr/bin/env bats source test_helper.bash @test "test date command with full...
Sometimes, it's useful to create dummy `.bats` files that do not contain any test cases. However, the `bats-exec-suite` fails. The reason: `let count+="$(bats-exec-test -c "$filename")"` evaluates to `let count+=0`, which...
All my tests take multiple minutes to run. I categorize them into separate files but it would still be nice to provide a string of a test name to only...
Wether or not CDPATH is set, the 'cd' builtin stdout should be redirected to /dev/null to avoid any issue. See #104 #119
Closes #219
I'm using bats to automate the runs of some tests I've written in bash. What I'm doing in the bats file is only calling the bash script, e.g. `@test "Run...
These changes produce some substantial performance benefits across all platforms, but most especially on Windows. I'm using them in the mainline of my own project as of https://github.com/mbland/go-script-bash/pull/165 ([Travis CI...
I tried to run [this test-suite](https://github.com/jwilder/nginx-proxy/tree/master/test) locally on and got this error: ``` /usr/local/libexec/bats-exec-suite: Zeile 20: let: count+=: Syntax Fehler: Operator erwartet. (Fehlerverursachendes Zeichen ist \"+=\"). ``` which hardly translates...
Bpkg
Packaged it up in bpkg (http://www.bpkg.io/)
Hi all, I would like to ask if it is possible to echo the run status of sub-bats files if they are called inside another bats. For eg. ``` $...