Skip to content

0xced/codacy-coverage-reporter

 
 

Repository files navigation

Codacy Coverage Reporter

Codacy Badge Build Status Maven Central

Multi-language coverage reporter for Codacy https://www.codacy.com

Setup

Follow the instructions on how to add coverage to your repository.

If necessary, see alternative ways of running Codacy Coverage Reporter for other ways of running Codacy Coverage Reporter, such as by installing the binary manually or using a CircleCI Orb or the Codacy Coverage Reporter GitHub Action.

For a complete list of commands and options, run the Codacy Coverage Reporter with the flag --help. For example:

$ bash <(curl -Ls https://coverage.codacy.com/get.sh) report --help
     ______          __
    / ____/___  ____/ /___ ________  __
   / /   / __ \/ __  / __ `/ ___/ / / /
  / /___/ /_/ / /_/ / /_/ / /__/ /_/ /
  \____/\____/\__,_/\__,_/\___/\__, /
                              /____/

  Codacy Coverage Reporter

 --> Using codacy reporter codacy-coverage-reporter-linux from cache
Command: report
Usage: codacy-coverage-reporter report 
  --project-token | -t  <your project API token>
  --api-token | -a  <your account API token>
  --organization-provider  <the project organization provider> (manual, gh, bb, ghe, bbe, gl, gle)
  --username | -u  <the project owner name>
  --project-name | -p  <your project name>
  --codacy-api-base-url  <the base URL for the Codacy API>
  --commit-uuid  <your commitUUID>
  --http-timeout  <Sets a specified timeout value, in milliseconds, to be used when interacting with Codacy API>
  --skip | -s  <skip if token isn't defined>
  --language | -l  <your project language>
  --coverage-reports | -r  <your project coverage file name>
  --partial  <if the report is partial>
  --prefix  <the project path prefix>
  --force-coverage-parser  <your coverage parser>
        Available parsers are: opencover,clover,lcov,phpunit,jacoco,dotcover,cobertura,go


 --> Succeeded!

Checksum

Starting with version 13.0.0 the get.sh script does a checksum on the downloaded binary automatically. To override this behavior and skip the checksum of the binary you can:

export CODACY_REPORTER_SKIP_CHECKSUM=true

What is Codacy?

Codacy is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.

Among Codacy’s features:

  • Identify new Static Analysis issues
  • Commit and Pull Request Analysis with GitHub, GitLab, and Bitbucket
  • Auto-comments on Commits and Pull Requests
  • Integrations with Slack and Jira
  • Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories

Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.

Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.

Free for Open Source

Codacy is free for Open Source projects.

About

Multi-language coverage reporter for Codacy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 95.2%
  • Shell 4.5%
  • Dockerfile 0.3%