Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Files

Latest commit

 

History

History

test

Tests (BATS)

Bash Automated Testing System

git clone https://github.com/bats-core/bats-core

Test files

  • freenom-args.bats
  • freenom-funcs.bats

Variables

  • script="/usr/local/bin/freenom.sh"
  • config="/etc/freenom.conf"

Run

bats freenom-args.bats

Options

filter (e.g. run one test only)

bats freenom-funcs.bats -f func_getRec

recursive (TAP)

bats -r . -t

bats -r ./test/freenom* -t

Libraries

  • git submodule add https://github.com/ztombol/bats-support test/bats-support
  • git submodule add https://github.com/jasonkarns/bats-assert-1 test/bats-assert-1

Documentation

git clone https://github.com/ztombol/bats-docs