Sharness is a portable shell library to write, run, and analyze automated tests for Unix programs. Since all tests output TAP, the Test Anything Protocol, they can be run with any TAP harness.
Sharness was derived from the Git project - see README.git for the original documentation.
The following files are essential to using Sharness:
sharness.sh
- core shell library providing test functionality, see separate API documentationaggregate-results.sh
- helper script to aggregate test resultsMakefile
- test driver
Copy them to the project you want to write automated tests for, e.g. to a folder
named test
.
To learn how to write and run actual test scripts based on sharness.sh
, please
read README.git until I come up with more documentation myself.
See how Sharness is used in real-world projects:
Sharness is licensed under the terms of the GNU General Public License version 2 or higher. See file COPYING for full license text.
- Web: https://github.com/mlafeldt/Sharness
- Mail: mathias.lafeldt@gmail.com
- Twitter: @mlafeldt