javanile/lcov.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


LCOV framework for Shell projects

.github/workflows/super-linter.ymlBuild StatuscodecovCodacy Badge

  • BASH 4.* or greater
  • LCOV package (Ubuntu)

Download lcov.sh file into your local machine

curl -sL https://git.io/lcov.sh

Install lcov package into your system

apt install lcov

Check if it working

bash lcov.sh -v

Add the following code [[ -z "${LCOV_DEBUG}" ]] || set -x on top of source file you want in a coverage report, see below example:

#!/bin/bash
[[ -z "${LCOV_DEBUG}" ]] || set -x

welcome () {
    echo "Hi $1, I'm testable code"
}

welcome "John"

Now, run from command line the following command:

lcov.sh FILE...

Use this link to post any soggestion https://lcov.hearken.io/

Work in progress

curl -i "https://git.io" \
     -d "url=https://raw.usercontent.com/javanile/lcov.sh/master/lcov.sh" \
     -d "code=lcov.sh"

Debian/Ubuntu

apt install lcov

Mac OSX

brew install lcov

Please see CHANGELOG for more information on what has changed recently.

make install && make test 

Please see CONTRIBUTING for details.

We highly appreciate if you create a social post on facebook or twitter with following hashtag:

Javanile is a community project agency based in Sicily, Italy. You'll find an overview of all our projects on our website.

Does your business depend on our contributions? Reach out and support us on .

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

The MIT License (MIT). Please see License File for more information.

Releases

No releases published

Packages

No packages published