Skip to content

Commit

Permalink
Add coverage stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Nov 3, 2015
1 parent b119d5e commit 913674a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 11 deletions.
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
source "https://rubygems.org"

group :test do
gem "coveralls"
gem "rack-test"
gem "rspec"
gem "rubocop"
gem "simplecov", ">= 0.9"
gem "sinatra", "~> 1.4", ">= 1.4.6"
gem "timecop"
end

# Specify your gem's dependencies in sidekiq-throttled.gemspec
gemspec
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Gem Version](https://badge.fury.io/rb/sidekiq-throttled.svg)](http://rubygems.org/gems/sidekiq-throttled)
[![Build Status](https://travis-ci.org/sensortower/sidekiq-throttled.svg?branch=master)](https://travis-ci.org/sensortower/sidekiq-throttled)
[![Code Climate](https://codeclimate.com/github/sensortower/sidekiq-throttled.svg?branch=master)](https://codeclimate.com/github/sensortower/sidekiq-throttled)
[![Coverage Status](https://coveralls.io/repos/sensortower/sidekiq-throttled/badge.svg?branch=master&service=github)](https://coveralls.io/github/sensortower/sidekiq-throttled?branch=master)

Concurrency and threshold throttling for Sidekiq.

Expand Down
5 changes: 0 additions & 5 deletions sidekiq-throttled.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,4 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", "~> 1.10"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec"
spec.add_development_dependency "timecop"
spec.add_development_dependency "rubocop"
spec.add_development_dependency "rack-test"
spec.add_development_dependency "sinatra", "~> 1.4", ">= 1.4.6"
end
5 changes: 0 additions & 5 deletions spec/jid_generator.rb

This file was deleted.

6 changes: 5 additions & 1 deletion spec/sidekiq_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

require "sidekiq/testing"

require "jid_generator"
module JidGenerator
def jid
SecureRandom.hex 12
end
end

configure_redis = proc do |config|
config.redis = {
Expand Down
13 changes: 13 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# coding: utf-8

require "simplecov"
require "coveralls"

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
add_filter "/spec/"
minimum_coverage 90
end

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "sidekiq/throttled"
require "sidekiq/throttled/testing"
Expand Down

0 comments on commit 913674a

Please sign in to comment.