solidus_support 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a5f84a7e9a295729e40c8c97377d6708dfcafc30125d4073a49bda3219ae78d
4
- data.tar.gz: 194b7b5e8948f66e0cf5cf546c9036c95dc775f0efcda01f48a69a126acb889f
3
+ metadata.gz: 32902c75bfdc08a3c98057acc7a3ad00195192193069e1d82f1b313ebe838928
4
+ data.tar.gz: 4d6ef910489780004e48196d07a3da7c0f105d106753bf66c80dcaf8a57a1b9f
5
5
  SHA512:
6
- metadata.gz: a33ff02d178bf70be2bef2b02b20e9dc430b3fdc66478651fd014f2c7a3fbb9ad4b777c028b44a62c9292e9fc1177f4f75375c2076d8df529460c98473648492
7
- data.tar.gz: cb26ee4a8a527898d9eb9c94a1a97210036cd74d42f7eb7e008ffd294445eebeafc0679b91e9cfeebe57edff5930d611c60910af6c37af87cc8106876c55fc54
6
+ metadata.gz: 1122450b8f36e775258033a303fa56ab125f7856c24de99f35d2cb2f890a126ac10c57e75346c568e3a81a04e27bdd40ff2a0ce7e8009a8d8433c6143a89aa00
7
+ data.tar.gz: 58f2ef36a526e9d31873cc89efe76a06c3061731d816c7caae1a3b45d17940db6199229857a745989068029d3de13bf44a5f65f3ed388b929e4827120f647a80
data/README.md CHANGED
@@ -60,6 +60,26 @@ in all extensions. It is also requireable as a stand-alone helper with:
60
60
  require "solidus_support/extension/spec_helper"
61
61
  ```
62
62
 
63
+ ### Coverage Collection
64
+
65
+ The gem also includes a SimpleCov configuration that will send your test
66
+ coverage information directly to Codecov.io. Simply add this at the top
67
+ of your `spec/spec_helper.rb`:
68
+
69
+ ```ruby
70
+ require "solidus_support/extension/coverage"
71
+ ```
72
+
73
+ **Note: Make sure to add this at the VERY TOP of your spec_helper,
74
+ otherwise you'll get skewed coverage reports!**
75
+
76
+ If your extension is in a public repo and being tested on Travis or
77
+ CircleCI, there's nothing else you need to do - you'll get coverage
78
+ reports for free!
79
+
80
+ If your setup is more complex, look at the [SimpleCov](https://github.com/colszowka/simplecov)
81
+ and [codecov-ruby](https://github.com/codecov/codecov-ruby) docs.
82
+
63
83
  ## Development
64
84
 
65
85
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -0,0 +1,16 @@
1
+ # A SimpleCov and Codecov configuration to track code coverage in your extension
2
+ #
3
+ # Include it AT THE TOP of your spec/spec_helper.rb:
4
+ #
5
+ # require 'solidus_support/extension/coverage'
6
+ #
7
+ # Note that things may not work properly if you don't include this at the very top!
8
+ #
9
+
10
+ require 'simplecov'
11
+ SimpleCov.start 'rails'
12
+
13
+ if ENV['CI']
14
+ require 'codecov'
15
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
16
+ end
@@ -1,3 +1,3 @@
1
1
  module SolidusSupport
2
- VERSION = '0.3.2'.freeze
2
+ VERSION = '0.3.3'.freeze
3
3
  end
@@ -23,5 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'rubocop'
24
24
  spec.add_development_dependency 'rubocop-rspec'
25
25
  spec.add_development_dependency 'solidus_core'
26
+
26
27
  spec.add_dependency 'capybara-screenshot'
28
+ spec.add_dependency 'codecov'
27
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-08 00:00:00.000000000 Z
11
+ date: 2019-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: codecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: Collection of common functionality for solidus extensions
112
126
  email:
113
127
  - john@stembolt.com
@@ -123,6 +137,7 @@ files:
123
137
  - README.md
124
138
  - Rakefile
125
139
  - lib/solidus_support.rb
140
+ - lib/solidus_support/extension/coverage.rb
126
141
  - lib/solidus_support/extension/feature_helper.rb
127
142
  - lib/solidus_support/extension/rails_helper.rb
128
143
  - lib/solidus_support/extension/spec_helper.rb
@@ -152,8 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
167
  - !ruby/object:Gem::Version
153
168
  version: '0'
154
169
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.7.3
170
+ rubygems_version: 3.0.6
157
171
  signing_key:
158
172
  specification_version: 4
159
173
  summary: A common functionality for solidus extensions