Skip to content

Measuring internal test coverage of the Julia programming language

License

Notifications You must be signed in to change notification settings

JuliaCI/CoverageBase.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoverageBase

Build Status Code Coverage

A package for measuring the internal test coverage of the Julia programming langauge.

Installation

You can install this on your local machine with

(v1.1) pkg> add https://github.com/JuliaCI/CoverageBase.jl.git

However, this is not sufficient on its own, particularly if you want to submit results to Coveralls.io. You should also set up the following:

  • A checkout of julia's master branch, one that you don't mind updating to the current master every time you run coverage statistics. Let's assume this checkout is in /somedirectory/julia-coverage.

  • A bash script similar to the following:

#! /bin/bash

echo $(date)
cd /somedirectory/julia-coverage
REPO_TOKEN=<your token here> /path/to/CoverageBase/run_coverage.sh

REPO_TOKEN should be set for the Coveralls.io repository you want to deposit the results in. You can find the token on the repo's main page on Coveralls, if you are an owner of the corresponding GitHub repository.

  • Optionally, set up a cron job to run the above shell script on a regular basis. It's probably wise to direct the output to a log file so you can inspect the output in cases of trouble.

About

Measuring internal test coverage of the Julia programming language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages