Skip to content

Commit aee92bc

Browse files
committed
Remove coveralls and configure SimpleCov
1 parent 70ce159 commit aee92bc

4 files changed

Lines changed: 13 additions & 84 deletions

File tree

.rubocop.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ AllCops:
1010
NewCops: enable
1111
Exclude:
1212
- 'geo_combine.gemspec'
13-
- 'Gemfile'
1413
- 'tmp/**/*'

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

35
# Specify your gem's dependencies in geo_combine.gemspec
46
gemspec
57

6-
gem 'coveralls', require: false
78
gem 'byebug'

geo_combine.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
3333
spec.add_development_dependency 'rubocop', '~> 1.25'
3434
spec.add_development_dependency 'rubocop-rspec', '~> 2.8'
3535
spec.add_development_dependency 'rubocop-rake'
36+
spec.add_development_dependency 'simplecov'
3637
end

spec/spec_helper.rb

Lines changed: 10 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
# frozen_string_literal: true
22

3-
# This file was generated by the `rspec --init` command. Conventionally, all
4-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5-
# The generated `.rspec` file contains `--require spec_helper` which will cause
6-
# this file to always be loaded, without a need to explicitly require it in any
7-
# files.
8-
#
9-
# Given that it is always loaded, you are encouraged to keep this file as
10-
# light-weight as possible. Requiring heavyweight dependencies from this file
11-
# will add to the boot time of your test suite on EVERY test run, even for an
12-
# individual file that may not need all of that loaded. Instead, consider making
13-
# a separate helper file that requires the additional dependencies and performs
14-
# the additional setup, and require it from the spec files that actually need
15-
# it.
16-
#
17-
# The `.rspec` file also contains a few flags that are not defaults but that
18-
# users commonly want.
19-
#
20-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
21-
require 'coveralls'
22-
Coveralls.wear!
3+
require 'simplecov'
4+
5+
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
6+
SimpleCov.start 'rails' do
7+
add_filter 'lib/tasks/geo_combine.rake'
8+
add_filter 'lib/geo_combine/version.rb'
9+
add_filter 'lib/geo_combine/railtie.rb'
10+
add_filter 'lib/geo_combine/cli.rb'
11+
minimum_coverage 95 # When updating this value, update the README badge value
12+
end
2313

2414
require 'geo_combine'
2515
require 'fixtures/xml_docs'
@@ -31,73 +21,11 @@
3121
RSpec.configure do |config|
3222
config.include Helpers
3323
config.include RSpecHtmlMatchers
34-
# rspec-expectations config goes here. You can use an alternate
35-
# assertion/expectation library such as wrong or the stdlib/minitest
36-
# assertions if you prefer.
3724
config.expect_with :rspec do |expectations|
38-
# This option will default to `true` in RSpec 4. It makes the `description`
39-
# and `failure_message` of custom matchers include text for helper methods
40-
# defined using `chain`, e.g.:
41-
# be_bigger_than(2).and_smaller_than(4).description
42-
# # => "be bigger than 2 and smaller than 4"
43-
# ...rather than:
44-
# # => "be bigger than 2"
4525
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
4626
end
4727

48-
# rspec-mocks config goes here. You can use an alternate test double
49-
# library (such as bogus or mocha) by changing the `mock_with` option here.
5028
config.mock_with :rspec do |mocks|
51-
# Prevents you from mocking or stubbing a method that does not exist on
52-
# a real object. This is generally recommended, and will default to
53-
# `true` in RSpec 4.
5429
mocks.verify_partial_doubles = true
5530
end
56-
57-
# The settings below are suggested to provide a good initial experience
58-
# with RSpec, but feel free to customize to your heart's content.
59-
# # These two settings work together to allow you to limit a spec run
60-
# # to individual examples or groups you care about by tagging them with
61-
# # `:focus` metadata. When nothing is tagged with `:focus`, all examples
62-
# # get run.
63-
# config.filter_run :focus
64-
# config.run_all_when_everything_filtered = true
65-
#
66-
# # Limits the available syntax to the non-monkey patched syntax that is
67-
# # recommended. For more details, see:
68-
# # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
69-
# # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
70-
# # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
71-
# config.disable_monkey_patching!
72-
#
73-
# # This setting enables warnings. It's recommended, but in some cases may
74-
# # be too noisy due to issues in dependencies.
75-
# config.warnings = true
76-
#
77-
# # Many RSpec users commonly either run the entire suite or an individual
78-
# # file, and it's useful to allow more verbose output when running an
79-
# # individual spec file.
80-
# if config.files_to_run.one?
81-
# # Use the documentation formatter for detailed output,
82-
# # unless a formatter has already been configured
83-
# # (e.g. via a command-line flag).
84-
# config.default_formatter = 'doc'
85-
# end
86-
#
87-
# # Print the 10 slowest examples and example groups at the
88-
# # end of the spec run, to help surface which specs are running
89-
# # particularly slow.
90-
# config.profile_examples = 10
91-
#
92-
# # Run specs in random order to surface order dependencies. If you find an
93-
# # order dependency and want to debug it, you can fix the order by providing
94-
# # the seed, which is printed after each run.
95-
# # --seed 1234
96-
# config.order = :random
97-
#
98-
# # Seed global randomization in this process using the `--seed` CLI option.
99-
# # Setting this allows you to use `--seed` to deterministically reproduce
100-
# # test failures related to randomization by passing the same `--seed` value
101-
# # as the one that triggered the failure.
102-
# Kernel.srand config.seed
10331
end

0 commit comments

Comments
 (0)