All Projects → JuliaCI → LocalCoverage.jl

JuliaCI / LocalCoverage.jl

Licence: other
Trivial functions for working with coverage for packages locally.

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to LocalCoverage.jl

Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+1194.55%)
Mutual labels:  coverage, coverage-report
Codecov Python
Python report uploader for Codecov
Stars: ✭ 162 (+194.55%)
Mutual labels:  coverage, coverage-report
Codacy Coverage Reporter
Multi-language coverage reporter for Codacy
Stars: ✭ 96 (+74.55%)
Mutual labels:  coverage, coverage-report
Simplecov
Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
Stars: ✭ 4,362 (+7830.91%)
Mutual labels:  coverage, coverage-report
enterprise
Code coverage done right.® On-premise enterprise version.
Stars: ✭ 63 (+14.55%)
Mutual labels:  coverage, coverage-report
Xcov
Nice code coverage reporting without hassle
Stars: ✭ 467 (+749.09%)
Mutual labels:  coverage, coverage-report
Typescript Coverage Report
Node command tool to generate TypeScript coverage report
Stars: ✭ 138 (+150.91%)
Mutual labels:  coverage, coverage-report
Bashcov
Code coverage tool for Bash
Stars: ✭ 113 (+105.45%)
Mutual labels:  coverage, coverage-report
javadoc-coverage
A Doclet to generate JavaDoc coverage reports ☕️🧪📗
Stars: ✭ 23 (-58.18%)
Mutual labels:  coverage, coverage-report
react-testing-mocha-chai-enzyme
A solid test setup for React components with Mocha, Chai, Sinon, Enzyme in a Webpack/Babel application.
Stars: ✭ 48 (-12.73%)
Mutual labels:  coverage, coverage-report
Covr
Test coverage reports for R
Stars: ✭ 285 (+418.18%)
Mutual labels:  coverage, coverage-report
goverreport
Command line tool for coverage reporting and validation
Stars: ✭ 44 (-20%)
Mutual labels:  coverage, coverage-report
frankencover.it
Code coverage for iOS and OSX.
Stars: ✭ 102 (+85.45%)
Mutual labels:  coverage, coverage-report
Gcovr
generate code coverage reports with gcc/gcov
Stars: ✭ 482 (+776.36%)
Mutual labels:  coverage, coverage-report
jacoco-badge-generator
Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
Stars: ✭ 53 (-3.64%)
Mutual labels:  coverage, coverage-report
unitest
🌎 Seamless node and browser unit testing with code coverage
Stars: ✭ 28 (-49.09%)
Mutual labels:  coverage, coverage-report
mutant-swarm
Mutation testing framework and code coverage for Hive SQL
Stars: ✭ 20 (-63.64%)
Mutual labels:  coverage, coverage-report
JuliaAcademyMaterials
Assets and Infrastructure for JuliaAcademy.com
Stars: ✭ 60 (+9.09%)
Mutual labels:  julia-language
pytest-coverage-comment
Comments a pull request with the pytest code coverage badge and full report
Stars: ✭ 32 (-41.82%)
Mutual labels:  coverage
Julia
Algorithms implemented in the Julia programming language. We're collaborating with the Humans of Julia community!
Stars: ✭ 216 (+292.73%)
Mutual labels:  julia-language

LocalCoverage.jl

lifecycle build codecov.io

This is a collection of trivial functions to facilitate generating and exploring test coverage information for Julia packages locally, without using any remote/cloud services.

Installation

Pkg.add("LocalCoverage")

or ]add LocalCoverage from the Julia REPL.

Optional Dependencies

The package has several optional features which require additional dependencies. lcov is required for generating HTML output. You can install it via

  • Debian/Ubuntu: sudo apt install lcov
  • Arch/Manjaro: yay -S lcov

Note that the code in this package assumes a reasonably recent lcov version when calling genhtml, ideally 1.13, but 1.12 should work too. This does not prevent installation, only emits a warning.

LocalCoverage also provides an option to generate a Cobertura XML, which is used by JVM-related test suites such as Jenkins. Using this requires the Python module lcov_cobertura (>= v2.0.1). With Python installed, you can install this module via pip install lcov_cobertura.

Usage

When generating test coverage, Julia places annotated *.cov source code files in the same directory as the source code itself. In addition, summary files will be placed in the coverage subdirectory of the package directory. We recommend using this package with packages added with the Pkg.dev installation option (which allows for easy manipulation of the package directory).

To generate test coverage files do

using LocalCoverage
# pkg is the package name as a string, e.g. "LocalCoverage"
generate_coverage(pkg, genhtml=true, show_summary=true, genxml=false) # defaults shown

You can then navigate to the coverage subdirectory of the package directory (e.g. ~/.julia/dev/PackageName/coverage) and see the generated coverage summaries.

To open the coverage report HTML in a browser do

open_coverage(pkg)

To delete all coverage files do

clean_coverage(pkg, rm_directory=true) # defaults shown
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].