Commit acaa19fecbff9bb1e100b118d0c6d72a70036758
1 parent
24dcb181
Exists in
colab
and in
4 other branches
Added Coveralls for historic test coverage
Showing
4 changed files
with
29 additions
and
1 deletions
Show diff stats
Gemfile
Gemfile.lock
| ... | ... | @@ -61,6 +61,12 @@ GEM |
| 61 | 61 | execjs |
| 62 | 62 | coffee-script-source (1.6.3) |
| 63 | 63 | colorize (0.5.8) |
| 64 | + coveralls (0.7.0) | |
| 65 | + multi_json (~> 1.3) | |
| 66 | + rest-client | |
| 67 | + simplecov (>= 0.7) | |
| 68 | + term-ansicolor | |
| 69 | + thor | |
| 64 | 70 | cucumber (1.3.2) |
| 65 | 71 | builder (>= 2.1.2) |
| 66 | 72 | diff-lcs (>= 1.1.3) |
| ... | ... | @@ -157,6 +163,8 @@ GEM |
| 157 | 163 | rdoc (3.12.2) |
| 158 | 164 | json (~> 1.4) |
| 159 | 165 | ref (1.0.5) |
| 166 | + rest-client (1.6.7) | |
| 167 | + mime-types (>= 1.16) | |
| 160 | 168 | rspec-core (2.14.5) |
| 161 | 169 | rspec-expectations (2.14.2) |
| 162 | 170 | diff-lcs (>= 1.1.3, < 2.0) |
| ... | ... | @@ -203,6 +211,8 @@ GEM |
| 203 | 211 | activesupport (>= 3.0) |
| 204 | 212 | sprockets (~> 2.8) |
| 205 | 213 | sqlite3 (1.3.8) |
| 214 | + term-ansicolor (1.2.2) | |
| 215 | + tins (~> 0.8) | |
| 206 | 216 | therubyracer (0.12.0) |
| 207 | 217 | libv8 (~> 3.16.14.0) |
| 208 | 218 | ref |
| ... | ... | @@ -210,6 +220,7 @@ GEM |
| 210 | 220 | thread_safe (0.1.3) |
| 211 | 221 | atomic |
| 212 | 222 | tilt (1.4.1) |
| 223 | + tins (0.10.0) | |
| 213 | 224 | treetop (1.4.15) |
| 214 | 225 | polyglot |
| 215 | 226 | polyglot (>= 0.3.1) |
| ... | ... | @@ -234,6 +245,7 @@ PLATFORMS |
| 234 | 245 | DEPENDENCIES |
| 235 | 246 | capistrano |
| 236 | 247 | coffee-rails (~> 4.0.0) |
| 248 | + coveralls | |
| 237 | 249 | cucumber (= 1.3.2) |
| 238 | 250 | cucumber-rails (~> 1.4.0) |
| 239 | 251 | database_cleaner | ... | ... |
features/support/env.rb
| 1 | 1 | require 'simplecov' |
| 2 | +require 'coveralls' | |
| 3 | + | |
| 2 | 4 | SimpleCov.start do |
| 5 | + formatter SimpleCov::Formatter::MultiFormatter[ | |
| 6 | + Coveralls::SimpleCov::Formatter, | |
| 7 | + SimpleCov::Formatter::HTMLFormatter | |
| 8 | + ] | |
| 3 | 9 | coverage_dir 'coverage/cucumber' |
| 4 | 10 | |
| 5 | 11 | add_group "Models", "app/models" |
| ... | ... | @@ -12,6 +18,7 @@ SimpleCov.start do |
| 12 | 18 | add_filter "/config/" |
| 13 | 19 | end |
| 14 | 20 | |
| 21 | + | |
| 15 | 22 | # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. |
| 16 | 23 | # It is recommended to regenerate this file in the future when you upgrade to a |
| 17 | 24 | # newer version of cucumber-rails. Consider adding your own code to a new file | ... | ... |
spec/spec_helper.rb
| 1 | -#Starts Simplecov | |
| 1 | +#Test coverage report | |
| 2 | 2 | require 'simplecov' |
| 3 | +require 'coveralls' | |
| 4 | + | |
| 3 | 5 | SimpleCov.start do |
| 6 | + formatter SimpleCov::Formatter::MultiFormatter[ | |
| 7 | + Coveralls::SimpleCov::Formatter, | |
| 8 | + SimpleCov::Formatter::HTMLFormatter | |
| 9 | + ] | |
| 4 | 10 | coverage_dir 'coverage/rspec' |
| 5 | 11 | |
| 6 | 12 | add_group "Models", "app/models" | ... | ... |