• Stars
    star
    20
  • Rank 1,083,893 (Top 22 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Go recursive coverage testing tool

roveralls

A Go recursive coverage testing tool.

GoDoc Build Status Build status Coverage Status Go Report Card

roveralls runs coverage tests on a package and all its sub-packages. The coverage profile is output as a single file called 'roveralls.coverprofile' for use by tools such as goveralls.

This tool was inspired by github.com/go-playground/overalls written by Dean Karn, but I found it difficult to test and brittle so I decided to rewrite it from scratch. Thanks for the inspiration Dean.

Usage

At its simplest, to test the current package and sub-packages and create a roveralls.coverprofile file in the directory that you run the command:

$ roveralls

To see the help for the command:

$ roveralls -help

    roveralls runs coverage tests on a package and all its sub-packages.  The
    coverage profile is output as a single file called 'roveralls.coverprofile'
    for use by tools such as goveralls.

    Usage of roveralls:
      -covermode count,set,atomic
          Mode to run when testing files: count,set,atomic (default "count")
      -help
          Display this help
      -ignore dir1,dir2,...
          Comma separated list of directory names to ignore: dir1,dir2,... (default ".git,vendor")
      -short
          Tell long-running tests to shorten their run time
      -v	Verbose output

View Output in a Web Browser

To view the code coverage for you packge in a browser:

$ go tool cover -html=roveralls.coverprofile

Use with goveralls

The output of roveralls is the same as the the standard go test -coverprofile=profile.coverprofile but with multiple files tested in the output file. This can therefore be used with tools such as goveralls.

If you wanted to call it from a .travis.yml script you could use:

- $HOME/gopath/bin/roveralls
- $HOME/gopath/bin/goveralls -coverprofile=roveralls.coverprofile -service=travis-ci

Contributing

If you want to improve this program make a pull request to the repo on github. Please put any pull requests in a separate branch to ease integration and add a test to prove that it works. If you find a bug, please report it at the project's issues tracker also on github.

Licence

Copyright (C) 2016, Lawrence Woodman [email protected]

This software is licensed under an MIT Licence. Please see the file, LICENCE.md, for details.

More Repositories

1

related_posts-jekyll_plugin

Replaces jekyll's related_posts function to use tags to calculate relationships
Ruby
79
star
2

mida

A Microdata parser/extractor library for Ruby
Ruby
77
star
3

xAce

A Jupiter Ace Emulator
C
32
star
4

awesome-forth

Resources and links for the Forth programming language
20
star
5

techtinkering.com

A blog about Retro Computers, Programming and General Technical Tinkering
HTML
14
star
6

sblasm

A SUBLEQ macro assembler
Tcl
12
star
7

CanAce

A Jupiter ACE Emulator
C
12
star
8

schema.org_scraper

Scrapes the schema.org site and returns the datatypes and vocabulaires in machine readable formats
Ruby
7
star
9

schema.org_schemas

The schema.org schemas in JSON and YAML
7
star
10

star_rating-liquid_filter

A Liquid Filter to display a rating as a series of star images. Originally designed for use with Jekyll.
Ruby
6
star
11

sdl_and_tk_demo

A Demonstration of How to Embed an SDL Surface in a Tk Window
C
4
star
12

machine_language_aids

A collection of useful tables and aids for programming in machine language.
4
star
13

vmodem

A modem emulator
Tcl
4
star
14

pty_tcl

A Tcl package to handle pseudo TTYs
C
3
star
15

tarcel

A Tcl packaging tool
Tcl
3
star
16

domain_name-liquid_filter

A Liquid Filter to display the domain name of a url. Originally designed for use with...
Ruby
3
star
17

xdgbasedir_tcl

A Tcl module to access the XDG Base Directory Specification
Tcl
2
star
18

rulehunter

A server to find rules in data based on user specified goals
Go
2
star
19

dexpr

A Go package for evaluating dynamic expressions
Go
1
star
20

appdirs_tcl

A Tcl module to simplify cross-platform application file locations
Tcl
1
star
21

vintage_basic_benchmark

A benchmark tool written in Basic for various vintage computers
Visual Basic
1
star
22

stream_tcl

A stream module for Tcl
Tcl
1
star
23

go-pdp8

A Dec PDP-8 emulator package
Go
1
star
24

position_independent_code_vic20

Examples of Position Independent Code (6502) on the Commodore VIC-20
1
star
25

tekyll

A structured file generator - Typically used to generate static websites
Tcl
1
star
26

rhkit

A Go package to find simple rules in data to meet user specified goals
Go
1
star
27

change_screen_dimensions_vic20

Two short Basic programs for the VIC-20 showing how to change screen dimensions
Visual Basic
1
star
28

ddataset

A Go package to handle dynamic Datasets
Go
1
star
29

TextPix

Converts images into a redefined character set and text screen data.
Tcl
1
star
30

64_columns_sideways_vic20

64 column text mode demonstration for the Commodore VIC-20
Makefile
1
star
31

subleq_vic20

SUBLEQ Virtual Machine for the Commodore VIC-20
Tcl
1
star