All Projects → archived-codacy → ruby-codacy-coverage

archived-codacy / ruby-codacy-coverage

Licence: other
DEPRECATED Post coverage results to Codacy

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ruby-codacy-coverage

jacoco-report
Github action that publishes the JaCoCo report as a comment in the Pull Request
Stars: ✭ 31 (+158.33%)
Mutual labels:  coverage, code-coverage
code-coverage-action
GitHub Action that generates code coverage reports
Stars: ✭ 28 (+133.33%)
Mutual labels:  coverage, code-coverage
mutant-swarm
Mutation testing framework and code coverage for Hive SQL
Stars: ✭ 20 (+66.67%)
Mutual labels:  coverage, code-coverage
grcov
📈 GitHub Action for code coverage reporting with grcov
Stars: ✭ 96 (+700%)
Mutual labels:  coverage, code-coverage
Single cov
Actionable code coverage.
Stars: ✭ 154 (+1183.33%)
Mutual labels:  coverage, code-coverage
tarpaulin
📈 GitHub Action for code coverage reporting with tarpaulin
Stars: ✭ 69 (+475%)
Mutual labels:  coverage, code-coverage
frankencover.it
Code coverage for iOS and OSX.
Stars: ✭ 102 (+750%)
Mutual labels:  coverage, code-coverage
cpp14-project-template
A simple, cross-platform, and continuously integrated C++14 project template
Stars: ✭ 64 (+433.33%)
Mutual labels:  codacy, code-coverage
Bashcov
Code coverage tool for Bash
Stars: ✭ 113 (+841.67%)
Mutual labels:  coverage, code-coverage
Utplsql
Testing Framework for PL/SQL
Stars: ✭ 402 (+3250%)
Mutual labels:  coverage, code-coverage
instrumentation
Assorted pintools
Stars: ✭ 24 (+100%)
Mutual labels:  coverage, code-coverage
Minicover
Cross platform code coverage tool for .NET Core
Stars: ✭ 193 (+1508.33%)
Mutual labels:  coverage, code-coverage
Altcover
Cross-platform coverage gathering and processing tool set for .net/.net core and Mono
Stars: ✭ 344 (+2766.67%)
Mutual labels:  coverage, code-coverage
Coverlet
Cross platform code coverage for .NET
Stars: ✭ 2,303 (+19091.67%)
Mutual labels:  coverage, code-coverage
Cmake Scripts
A selection of useful scripts for use in CMake projects, include code coverage, sanitizers, and dependency graph generation.
Stars: ✭ 202 (+1583.33%)
Mutual labels:  coverage, code-coverage
CutterDRcov
DynamoRIO coverage visualization for cutter
Stars: ✭ 51 (+325%)
Mutual labels:  coverage
Dashi
💯 Get a notification in Slack every time someone asks you to check some code on Github or Bitbucket.
Stars: ✭ 29 (+141.67%)
Mutual labels:  review
Change Detection Review
A review of change detection methods, including codes and open data sets for deep learning. From paper: change detection based on artificial intelligence: state-of-the-art and challenges.
Stars: ✭ 248 (+1966.67%)
Mutual labels:  review
cov
An emacs extension for displaying coverage data on your code
Stars: ✭ 65 (+441.67%)
Mutual labels:  coverage
SOCVFinder
Queen, search and report question to for cv review and scan comments for Heat
Stars: ✭ 19 (+58.33%)
Mutual labels:  review

Deprecated

This repository is no longer maintained. As an alternative, check codacy-coverage-reporter to send your test coverage results to your Codacy dashboard.

ruby-codacy-coverage

Ruby coverage reporter for Codacy https://www.codacy.com

Codacy Badge Codacy Badge Build Status Gem Version

Parses SimpleCov output and submits the result to Codacy

Setup

Include the gem in your project

gem 'codacy-coverage', :require => false

In the first line of your spec_helper initialize the reporter:

require 'codacy-coverage'

Codacy::Reporter.start

Configuration

To update Codacy, you will need your project API token. You can find the token in Project -> Settings -> Integrations -> Project API.

Then set it in your terminal, replacing %Project_Token% with your own token:

export CODACY_PROJECT_TOKEN=%Project_Token%

Enterprise

To send coverage in the enterprise version you should:

export CODACY_BASE_API_URL=<Codacy_instance_URL>:16006

By default this plugin will not submit results if you run your tests in localhost. If you want to force the submission you can setup the following environment variable:

export CODACY_RUN_LOCAL=true

Note: You should keep your API token well protected, as it grants owner permissions to your projects.

Running Tests

When you run your tests, the plugin will send the coverage info to Codacy.

For example, run the following commands:

gem install bundler
bundle install

This will install the required dependencies. Then just run the tests:

bundle exec rspec

By default, the debug info will be logged into a file. If you want the debug info to be printed to stdout you can:

export DEBUG_STDOUT=true

You can now check your coverage results in the Codacy dashboard of your project.

Troubleshoot

Cannot send coverage when using VCR

require 'vcr'
VCR.configure do |config|
  # other config options
  config.allow_http_connections_when_no_cassette = false
  config.ignore_hosts 'api.codacy.com'
end

Cannot generate local simplecov report

Override SimpleCov.formatter by adding both your prefered simplecov formatter and Codacy's formatter. You can also add more options to SimpleCov.start.

require 'simplecov'
require 'codacy-coverage'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
    SimpleCov::Formatter::HTMLFormatter,
    Codacy::Formatter
])

SimpleCov.start do
  add_filter '.gems'
  add_filter 'pkg'
  add_filter 'spec'
  add_filter 'vendor'
end

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, BitBucket/Stash, GitLab (and also direct git repositories)
  • Auto-comments on Commits and Pull Requests
  • Integrations with Slack, HipChat, Jira, YouTrack
  • 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].