Skip to content

vassilevsky/abstract-code-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abstract Code Coverage Format

An open, extensive, JSON Schema-specified format of software source code coverage information.

Features

  • JSON as the underlying format
  • JSON Schema that fully specifies and describes the format
  • Programming language and tool-agnostic format
  • Support for branch coverage information
  • No need of access to source code to render a nice-looking coverage report

The Schema

The schema is in abstract-coverage-schema.json. This is the main artifact of this project. It is validated agaist the metaschema on Travis on every push.

Examples are in examples directory. They are validated against this schema.

Implementations

  • Add your own implementation here via a pull request

Related projects

In the order of frequency of encounters in my research:

SonarQube Generic Test Coverage format

Pros:

  • XML Schema
    • The only coverage format I know of that has an openly available schema. Wow!

Cons:

  • XML (what year is it?)
  • Overly verbose element names (linesToCover)
  • Poor branch coverage info

Cobertura

Pros:

  • Seems to be widely supported

Cons:

  • Doesn't have an easily discoverable schema or even an example

Coveralls

Pros:

  • Widely supported

Cons:

  • Doesn't have an easily discoverable schema or even an example

Cover for Bitbucket Server

Pros:

  • Compact

Cons:

  • Too compact

CodeClimate

Pros:

  • Seems to be widely supported

Cons:

  • Doesn't have an easily discoverable schema or even an example

TODO

  • Help OpenCov support this format
    • Write an opencov client gem to replace coveralls (which is just not cool to piggyback on)
  • Write a renderer to a standalone nice-looking project coverage report
  • Port Makefile to Windows

About

Comprehensive source code coverage format specification

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages