iilei / docker-bats

Lightweight Bash Automated Testing System Docker Image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Lightweight Bash Automated Testing System Docker Image

License:MIT License


Languages

Language:Shell 71.2%Language:Makefile 28.8%