Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

danger-simplecov_json

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danger-simplecov_json

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

danger-simplecov_json

License Gem Build Status

Report your Ruby app test suite code coverage in Danger.

Before using this plugin, you need to setup your project to use SimpleCov to get code coverage information and simplecov-json to format it as JSON.

How does it look?

<tr>
  <td>:book:</td>
  <td data-sticky="true">Code coverage is now at 99.15% (1512/1525 lines)</td>
</tr>
1 Message

Installation

Add this line to your Gemfile:

gem 'danger-simplecov_json'

Usage

Just add this line to your Dangerfile:

simplecov.report 'coverage/coverage.json'

You can also make the message not sticky:

simplecov.report('coverage/coverage.json', sticky: false)

Individual File coverage

In addition, you can see coverage for the files you've added or modified in git:

simplecov.individual_report('coverage/coverage.json', Dir.pwd)

License

MIT

Development

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Run bundle exec rake spec to run the tests.
  4. Use bundle exec guard to automatically have tests run as you make changes.
  5. Make your changes.

FAQs

Package last updated on 26 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc