Docker image that contains bats-core testing system and bats test helpers
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. https://github.com/bats-core/bats-core
TODO: Add assertions to excercise each bats helper included
- Run bats tests using pretty (default with tty allocated) formatter:
docker run --rm -t -v "${PWD}:/code" mvignjevic/bats-with-helpers ./tests/test-example.bats
- Run bats tests using tap (default without tty) formatter:
docker run --rm -v "${PWD}:/code" mvignjevic/bats-with-helpers ./tests/test-example.bats
- Run the container with the interactive shell for debugging:
docker run --rm -it -v ${PWD}:/code --entrypoint /bin/sh mvignjevic/bats-with-helpers
- 1.0.0
- The first proper release.
Milan Vignjevic
Distributed under the MIT license. See LICENSE
for more information.