Bash Unit Testing Tool
butt [-hlsvVw] [--color[=WHEN]] FILE
Bash Unit Testing Tool (hereinafter referred as the 'BUTT') runs and evaluates a set of commands according to expected results. It can serve as CI component of Bash scrip development.
It is an alternative to bats command with following improvements:
- predefined comparison (assert) functions,
- distinguish standard and error output,
- verbose mode,
- advanced user functions support.
- --color[=WHEN], --colour[=WHEN]
- Use markers to highlight command status; WHEN is 'always', 'never', or 'auto'.
- -h, --help
- Print help.
- -l NUM, --limit=NUM
- Limit the number of running tests.
- -s NUM, --skip=NUM
- Skip the number of tests.
- -v, --verbose
- Verbose mode.
- -V, --version
- Print version number.
- -w PATH, --working-dir=PATH
- Run tests in specific PATH (and do not remove it).
From dist package
- Tip: Specify destination directories
./configure && make && compiled/install
- Make dist package from source
./configure && make dist
- Tip: Specify variables
./configure && PREFIX=/usr SYSTEM=babun make dist
- Tip: Install rst2man
apt-get install python-docutilsor
pip install docutils
- Actual version
- see file VERSION
- Actual change log
- see file CHANGELOG
- No problems occurred.
- Generic error code.
- Parse or invalid option error.
Copyright (C) 2016 InternetGuru
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
If you find this program useful, please send a donation to its developers to support their work. If you use this program at your workplace, please suggest that the company make a donation. We appreciate contributions of any size. Donations enable us to spend more time working on this package, and help cover our infrastructure expenses.
If you’d like to make a donation of any value, please send it to the following PayPal address:
Since we aren’t a tax-exempt organization, we can’t offer you a tax deduction. But for all donations over 50 USD, we’d be happy to recognize your contribution on the BUTT page and on this README file (including manual page) for the next release.
We are also happy to consider making particular improvements or changes, or giving specific technical assistance, in return for a substantial donation over 100 USD. If you would like to discuss this possibility, write us at email@example.com.
Another possibility is to pay a software maintenance fee. Again, write us about this at firstname.lastname@example.org to discuss how much you want to pay and how much maintenance we can offer in return.
Thanks for your support!