{"repo":"infertux/bashcov","free":true,"listed":false,"github":"https://github.com/infertux/bashcov","clone":"git clone https://github.com/infertux/bashcov.git","description":"Code coverage tool for Bash","language":"Ruby","stars":172,"topics":["ruby","simplecov","coverage","bash","testing","coverage-report","rubygems","code-coverage","tdd","shell"],"license":"MIT","category":"cli-tools","readme_excerpt":"Bashcov Bashcov is a code coverage analysis tool for Bash . In most cases, you'll want overall coverage results for your project from shUnit2, Bats, bash unit, assert.sh, bashaspec, etc. Bashcov automatically takes care of this by caching and merging results when generating reports, so your report includes coverage across your test suites and thereby gives you a better picture of blank spots. It uses the SimpleCov coverage library to generate HTML reports. SimpleCov gets installed automatically when you install Bashcov. Here are example coverages generated by Bashcov: test app demo & RVM demo. Installation gem install bashcov If the gem command is unavailable, you need to install Ruby first. For more information, including other installation methods, see INSTALL.md . 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. It will create a directory named ./coverage/ , you may open ./coverage/index.html to browse the coverage report. SimpleCov integration You can leverage the underlying library SimpleCov by adding a .simplecov file in your project's root, like this. See advanced usage for more information. Contributing Bug reports and patches are most welcome. See the contribution guidelines. For ","default_branch":null,"files":null,"tree":[],"storefront":"/r/infertux","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/infertux/bashcov/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}