/docker-bats

Lightweight Bash Automated Testing System Docker Image

Primary LanguageShellMIT LicenseMIT

Lightweight Docker Image for the Bash Automated Testing System

A lightweight Docker image for Bash Automated Testing System (bats)

It provides:

  • alpine v3.5
  • bats v0.4.0

and the following helpers:

Helpers loading

All helpers are stored under the /usr/local/lib/bats/ folder.

To load all helpers, add in your bats test the following line:

load '/usr/local/lib/bats/load.bash'

Examples

Display the bats help

  docker run --rm -ti lucor/bats bats

Run a bats test

  docker run --rm -ti \
    -v $(pwd):/tests \
    lucor/bats \
    bats your_test.bats