Skip to content

Latest commit

 

History

History
executable file
·
34 lines (23 loc) · 1.44 KB

README.md

File metadata and controls

executable file
·
34 lines (23 loc) · 1.44 KB

https://github.com/LimaBD/batspp/releases/latest License: LGPLv3 Python: >=3.8 tests

BATSPP

Shell style tests using bats-core framework

Bats is a great TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected.

The goal of Batspp to allow writing shell style tests with an simple and a less idiosyncratic syntax.

#!/usr/bin/env batspp

# Test example with multiple assertions
$ filepath=$(echo $TMP/testfile-"$$")
$ echo -e "in this test\nwe are using\nmultiple assertions" | sudo tee $filepath
$ cat $filepath | wc -l
3
$ cat $filepath | wc -c
46

Batspp grew out of work for Thomas O'Hara on shell-scripts and mezcla.

Documentation

You can learn more about Batspp reading the docs.

License

Batspp is released under an GNU Lesser General Public License Version 3, see LICENSE.TXT for details.