git.infertux.com bashcov / v1.2.1
v1.2.1

Tree @v1.2.1 (Download .tar.gz)

Bashcov Build Status Dependency Status Code Climate Coverage Status Gem Version

Code coverage for Bash

You should check out these coverage examples - it's worth a thousand words:

Installation

$ gem install bashcov

Usage

$ bashcov --help prints all available options. Here are some examples:

$ bashcov ./script.sh
$ bashcov --skip-uncovered ./script.sh
$ bashcov -- ./script.sh --some --flags
$ bashcov --skip-uncovered -- ./script.sh --some --flags

script.sh can be a mere Bash script or typically your CI script. Bashcov will keep track of all executed scripts.

Then it will create a directory named ./coverage/ containing nice HTML files. Open ./coverage/index.html to browse the coverage report.

SimpleCov integration

You can take great advantage of SimpleCov by adding a .simplecov file in your project's root (like this). See SimpleCov README for more information.

Contributing

Bug reports and patches are most welcome. See the contribution guidelines.

License

MIT