Bashcov
Code coverage for Bash
- Source Code
- Bug Tracker
- API Documentation
- Changelog
- Rubygem
- Continuous Integration
- Dependencies
- SimpleCov
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