Skip to content

Instantly share code, notes, and snippets.

@codecov-io
Created June 3, 2015 11:31
Show Gist options
  • Save codecov-io/96e1addb96856a9034c2 to your computer and use it in GitHub Desktop.
Save codecov-io/96e1addb96856a9034c2 to your computer and use it in GitHub Desktop.
Codecov JSON example
{
"coverage": {
"path/to/file.py": [null, 1, 0, null, true, 0, 0, 1, 1],
"path/to/other.py": [null, 0, 1, 1, "1/3", null]
},
"messages": {
"path/to/other.py": {
"1": "custom message for line 1"
}
}
}
@codecov-io
Copy link
Author

Important the coverage for each file must start with null because there is no line at index 0.

file[line_number] = number_of_hits

@adireddy
Copy link

How can I represent methods, branches and partials using the above format?

I am preparing a report for haxe code https://codecov.io/github/adireddy/haxe-checkstyle/ and finding it hard to understand how to represent all the information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment