All Projects → infertux → Bashcov

infertux / Bashcov

Licence: mit
Code coverage tool for Bash

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Bashcov

frankencover.it
Code coverage for iOS and OSX.
Stars: ✭ 102 (-9.73%)
Mutual labels:  coverage, coverage-report, code-coverage
mutant-swarm
Mutation testing framework and code coverage for Hive SQL
Stars: ✭ 20 (-82.3%)
Mutual labels:  coverage, coverage-report, code-coverage
List Of Testing Tools And Frameworks For .net
✅ List of Automated Testing (TDD/BDD/ATDD/SBE) Tools and Frameworks for .NET
Stars: ✭ 303 (+168.14%)
Mutual labels:  tdd, coverage
Altcover
Cross-platform coverage gathering and processing tool set for .net/.net core and Mono
Stars: ✭ 344 (+204.42%)
Mutual labels:  coverage, code-coverage
Simplecov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
Stars: ✭ 4,362 (+3760.18%)
Mutual labels:  coverage, coverage-report
instrumentation
Assorted pintools
Stars: ✭ 24 (-78.76%)
Mutual labels:  coverage, code-coverage
Covr
Test coverage reports for R
Stars: ✭ 285 (+152.21%)
Mutual labels:  coverage, coverage-report
Utplsql
Testing Framework for PL/SQL
Stars: ✭ 402 (+255.75%)
Mutual labels:  coverage, code-coverage
goverreport
Command line tool for coverage reporting and validation
Stars: ✭ 44 (-61.06%)
Mutual labels:  coverage, coverage-report
Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+530.09%)
Mutual labels:  coverage, coverage-report
Gcovr
generate code coverage reports with gcc/gcov
Stars: ✭ 482 (+326.55%)
Mutual labels:  coverage, coverage-report
Kahlan
✔️ PHP Test Framework for Freedom, Truth, and Justice
Stars: ✭ 1,065 (+842.48%)
Mutual labels:  tdd, coverage
LocalCoverage.jl
Trivial functions for working with coverage for packages locally.
Stars: ✭ 55 (-51.33%)
Mutual labels:  coverage, coverage-report
jacoco-report
Github action that publishes the JaCoCo report as a comment in the Pull Request
Stars: ✭ 31 (-72.57%)
Mutual labels:  coverage, code-coverage
Ddd Tdd Rich Domain Model Dojo Kata
DDD patterns implemented following TDD
Stars: ✭ 91 (-19.47%)
Mutual labels:  tdd, coverage
Shellspec
A full-featured BDD unit testing framework for bash, ksh, zsh, dash and all POSIX shells
Stars: ✭ 375 (+231.86%)
Mutual labels:  tdd, coverage
unitest
🌎 Seamless node and browser unit testing with code coverage
Stars: ✭ 28 (-75.22%)
Mutual labels:  coverage, coverage-report
behat-code-coverage
Generate Code Coverage reports for Behat tests
Stars: ✭ 48 (-57.52%)
Mutual labels:  coverage-report, code-coverage
Xcov
Nice code coverage reporting without hassle
Stars: ✭ 467 (+313.27%)
Mutual labels:  coverage, coverage-report
Phpspec Code Coverage
Generate Code Coverage reports for PhpSpec tests
Stars: ✭ 59 (-47.79%)
Mutual labels:  code-coverage, coverage-report

Bashcov

Gem Version Build Status Coverage Status Maintainability Inline docs

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.

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.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].