Skip to content

ben-ole/codacy-coverage-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov

codacy-xcov

Generic multi platform parser for coverage reports to keep track on codacy. Written in Rust => hassle free binary release without any dependencies.

supported coverage reports

  • iOS xcov json reports

usage

USAGE:
    covrep [FLAGS] [OPTIONS] <PROJECT_TOKEN> <COMMIT> <INPUT>

FLAGS:
    -h, --help       Prints help information
    -v               Sets the level of verbosity
    -V, --version    Prints version information

OPTIONS:
    -o, --output <OUTPUT>        save compiled json to `output`.
        --prefix <PREFIX>        Prefix the path to the files in the output json with given slice.
    -t, --type <TYPE>            Set input file type. Available: `json`. defaults to `json`
    -l, --language <LANGUAGE>    change language parameter for codacy. defaults to `swift`
    -p, --parser <PARSER>        Set parser to use for coverage extraction. Available: `xcov`. defaults to `xcov`

ARGS:
    <PROJECT_TOKEN>    Set the codacy project token
    <COMMIT>           Set the current GIT Commit UUID
    <INPUT>            Sets the input file to use

install

This project uses trust CI/CD script. Binary releases are available for many platforms.

sample config with circleci
- run:
    name: install codacy coverage uploader
    command: curl -L https://github.com/sevenmind/codacy-coverage-reporter/releases/download/v1.0.0/covrep-v1.0.0-i686-apple-darwin.tar.gz | tar -xz && chmod +x covrep
- run:
    name: upload coverage report to codacy
    command: ./covrep $CODACY_PROJECT_TOKEN $CIRCLE_SHA1 $FL_OUTPUT_DIR/xcov/report.json