Commit 512d8a77 by source_reader

added coverage reports to rspec

parent 6f45a3e4
Showing with 33 additions and 1 deletions
...@@ -68,6 +68,7 @@ group :local, :development, :test do ...@@ -68,6 +68,7 @@ group :local, :development, :test do
gem 'faker' gem 'faker'
# Use sqlite3 as the database for Active Record # Use sqlite3 as the database for Active Record
gem 'sqlite3' gem 'sqlite3'
gem 'coveralls', require: false
end end
# NOTE: install mailcatcher for development # NOTE: install mailcatcher for development
...@@ -82,6 +83,7 @@ end ...@@ -82,6 +83,7 @@ end
group :test do group :test do
gem 'simplecov', :require => false gem 'simplecov', :require => false
gem 'simplecov-console', :require => false
end end
group :production do group :production do
......
...@@ -46,6 +46,7 @@ GEM ...@@ -46,6 +46,7 @@ GEM
public_suffix (>= 2.0.2, < 4.0) public_suffix (>= 2.0.2, < 4.0)
airbrussh (1.3.1) airbrussh (1.3.1)
sshkit (>= 1.6.1, != 1.7.0) sshkit (>= 1.6.1, != 1.7.0)
ansi (1.5.0)
arel (9.0.0) arel (9.0.0)
ast (2.4.0) ast (2.4.0)
backports (3.11.4) backports (3.11.4)
...@@ -82,6 +83,12 @@ GEM ...@@ -82,6 +83,12 @@ GEM
xpath (~> 3.2) xpath (~> 3.2)
coderay (1.1.2) coderay (1.1.2)
concurrent-ruby (1.1.5) concurrent-ruby (1.1.5)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
crack (0.4.3) crack (0.4.3)
safe_yaml (~> 1.0.0) safe_yaml (~> 1.0.0)
crass (1.0.4) crass (1.0.4)
...@@ -159,6 +166,7 @@ GEM ...@@ -159,6 +166,7 @@ GEM
rubocop (~> 0.20) rubocop (~> 0.20)
hashdiff (0.3.7) hashdiff (0.3.7)
hashie (3.5.7) hashie (3.5.7)
hirb (0.7.3)
httparty (0.16.3) httparty (0.16.3)
mime-types (~> 3.0) mime-types (~> 3.0)
multi_xml (>= 0.5.2) multi_xml (>= 0.5.2)
...@@ -318,6 +326,10 @@ GEM ...@@ -318,6 +326,10 @@ GEM
docile (~> 1.1) docile (~> 1.1)
json (>= 1.8, < 3) json (>= 1.8, < 3)
simplecov-html (~> 0.10.0) simplecov-html (~> 0.10.0)
simplecov-console (0.4.2)
ansi
hirb
simplecov
simplecov-html (0.10.2) simplecov-html (0.10.2)
spring (2.0.2) spring (2.0.2)
activesupport (>= 4.2) activesupport (>= 4.2)
...@@ -335,6 +347,8 @@ GEM ...@@ -335,6 +347,8 @@ GEM
sshkit (1.18.0) sshkit (1.18.0)
net-scp (>= 1.1.2) net-scp (>= 1.1.2)
net-ssh (>= 2.8.0) net-ssh (>= 2.8.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
terminal-notifier (2.0.0) terminal-notifier (2.0.0)
terminal-notifier-guard (1.7.0) terminal-notifier-guard (1.7.0)
thin (1.7.2) thin (1.7.2)
...@@ -344,6 +358,7 @@ GEM ...@@ -344,6 +358,7 @@ GEM
thor (0.20.3) thor (0.20.3)
thread_safe (0.3.6) thread_safe (0.3.6)
tilt (2.0.9) tilt (2.0.9)
tins (1.20.2)
turbolinks (5.2.0) turbolinks (5.2.0)
turbolinks-source (~> 5.2) turbolinks-source (~> 5.2)
turbolinks-source (5.2.0) turbolinks-source (5.2.0)
...@@ -383,6 +398,7 @@ DEPENDENCIES ...@@ -383,6 +398,7 @@ DEPENDENCIES
capistrano-passenger capistrano-passenger
capistrano-rails (~> 1.2) capistrano-rails (~> 1.2)
capistrano-rbenv (~> 2.0) capistrano-rbenv (~> 2.0)
coveralls
cucumber-rails cucumber-rails
database_cleaner database_cleaner
devise_invitable devise_invitable
...@@ -408,6 +424,7 @@ DEPENDENCIES ...@@ -408,6 +424,7 @@ DEPENDENCIES
sass-rails (~> 5.0) sass-rails (~> 5.0)
sdoc (~> 0.4.0) sdoc (~> 0.4.0)
simplecov simplecov
simplecov-console
spring spring
spring-commands-rspec spring-commands-rspec
sqlite3 sqlite3
......
...@@ -17,8 +17,21 @@ ...@@ -17,8 +17,21 @@
# users commonly want. # users commonly want.
# #
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
require 'simplecov' require 'simplecov'
SimpleCov.start require 'simplecov-console'
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::Console,
])
SimpleCov.start 'rails' do
add_group "Models", "app/models"
add_group "Controllers", "app/controllers"
add_group "Services", "app/services"
add_group "Adapters","app/adapters"
end
require 'webmock/rspec' require 'webmock/rspec'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment