bats icon indicating copy to clipboard operation
bats copied to clipboard

Bash Automated Testing System

Results 101 bats issues
Sort by recently updated
recently updated
newest added

`bats` suffers from the same bug resolved in: * https://github.com/postmodern/chruby/pull/381 * https://github.com/rcaloras/bash-preexec/pull/32 This is a "feature" of `bash`, see [this answer on SO](http://stackoverflow.com/a/40944702/5353461). I discovered this when my `bash-preexec` returned...

I'm trying to test connectivity to a docker ghost container. I want to start the container and then test that I can use wget to pull the index.html. I have...

**tl;dr** can I chnage bats, per the below note[1]? I was a bit confused that some failure-checking I placed atop a `.bats` file was executing once-per `@test`, as I expected...

If a test fails, the output looks like this: `foo.bash`: ``` foo () { echo baz } ``` `foo_spec.bash`: ``` source ./foo.bash @test "foo equals bar" { expected_result="bar" run foo...

Try this in bash: ``` user@machine:~$ set -e user@machine:~$ [ 1 -eq 1 ] user@machine:~$ [ 1 -eq 0 ] # shell exits user@machine:~$ set -e user@machine:~$ [[ 1 ==...

documentation

I would like to run bats in a chroot environment to get a fs-side-effect-free unit test. Is this possible/recommended with bats?

Hi, I have a question, I realized that you can't use variables in the same ways as bash files inside bats, for instance for the next file: ``` file=/home/file1 @test...

When I see a test failing **I can't see the outputs and the status** provided by the tested scripts. It would be great when on each call of "run" the...

First of all, thanks for a great bash testing tool! 👍 Almost all of my tests rely on variables that are only expanded when the script is run as an...

- New TODO state for tests, with helper TODO/todo. - fail and diag helper routines for easier testing. See Test Anything Protocol. There are also other customizations on dotmpe/bats: -l:...