Skip to content

Commit

Permalink
Merge pull request #26 from dinj-oss/24_code_coverage
Browse files Browse the repository at this point in the history
Add Simplecov
  • Loading branch information
tjchambers committed Aug 13, 2017
2 parents d14dfa6 + aed34c1 commit 7c70642
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- type: store_test_results
path: /tmp/test-results

- run: bundle exec rspec spec/
- run: bundle exec rspec spec/ && CODECLIMATE_REPO_TOKEN=06263aaac18bc4e88f284d77e1acff710652cadadd22476767fa3c6cb861bb39 bundle exec codeclimate-test-reporter
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ GEM
builder (3.2.3)
codeclimate-engine-rb (0.4.0)
virtus (~> 1.0)
codeclimate-test-reporter (1.0.8)
simplecov (<= 0.13)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concord (0.1.5)
Expand All @@ -69,12 +71,14 @@ GEM
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.3)
docile (1.1.5)
equalizer (0.0.11)
erubi (1.6.0)
globalid (0.4.0)
activesupport (>= 4.2.0)
i18n (0.8.1)
ice_nine (0.11.2)
json (2.1.0)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.5)
Expand Down Expand Up @@ -168,6 +172,11 @@ GEM
rspec_junit_formatter (0.2.3)
builder (< 4)
rspec-core (>= 2, < 4, != 2.12.0)
simplecov (0.13.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.1)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -202,6 +211,7 @@ PLATFORMS
DEPENDENCIES
adamantium (~> 0.2.0)
bundler (~> 1.15)
codeclimate-test-reporter
concord (~> 0.1.4)
mutant (~> 0.8.14)
mutant-rspec (~> 0.8.14)
Expand Down
1 change: 1 addition & 0 deletions mutator_rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rspec-core', '~> 3.6.0'
gem.add_development_dependency 'rspec-expectations', '~> 3.6.0'
gem.add_development_dependency 'rspec_junit_formatter'
gem.add_development_dependency 'codeclimate-test-reporter'
gem.add_development_dependency 'rspec-mocks', '~> 3.6.0'
gem.add_development_dependency 'mutant', '~> 0.8.14'
gem.add_development_dependency 'mutant-rspec', '~> 0.8.14'
Expand Down
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# frozen_string_literal: true

require 'simplecov'

SimpleCov.add_filter '/spec/'
SimpleCov.start 'rails' unless File.basename($0).eql?('mutant')

require 'bundler/setup'
require 'mutator_rails'

Expand Down

0 comments on commit 7c70642

Please sign in to comment.