mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Add test coverage generation using simplecov
This commit is contained in:
parent
a32f928fc8
commit
066c378705
4 changed files with 11 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -22,3 +22,4 @@ tags
|
||||||
/.bundle
|
/.bundle
|
||||||
/public/assets/
|
/public/assets/
|
||||||
.sass-cache/
|
.sass-cache/
|
||||||
|
/coverage
|
||||||
|
|
|
||||||
1
Gemfile
1
Gemfile
|
|
@ -48,6 +48,7 @@ group :development do
|
||||||
gem "yard"
|
gem "yard"
|
||||||
gem "tolk"
|
gem "tolk"
|
||||||
gem "bullet"
|
gem "bullet"
|
||||||
|
gem "simplecov"
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,10 @@ GEM
|
||||||
libwebsocket (~> 0.1.3)
|
libwebsocket (~> 0.1.3)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
rubyzip
|
rubyzip
|
||||||
|
simplecov (0.7.1)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
simplecov-html (~> 0.7.1)
|
||||||
|
simplecov-html (0.7.1)
|
||||||
sprockets (2.2.2)
|
sprockets (2.2.2)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
|
|
@ -221,6 +225,7 @@ DEPENDENCIES
|
||||||
sanitize
|
sanitize
|
||||||
sass-rails
|
sass-rails
|
||||||
selenium-webdriver
|
selenium-webdriver
|
||||||
|
simplecov
|
||||||
sqlite3
|
sqlite3
|
||||||
swf_fu
|
swf_fu
|
||||||
therubyracer
|
therubyracer
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
require 'simplecov'
|
||||||
|
SimpleCov.start 'rails'
|
||||||
|
|
||||||
ENV["RAILS_ENV"] = "test"
|
ENV["RAILS_ENV"] = "test"
|
||||||
require File.expand_path('../../config/environment', __FILE__)
|
require File.expand_path('../../config/environment', __FILE__)
|
||||||
require 'rails/test_help'
|
require 'rails/test_help'
|
||||||
|
|
@ -129,4 +132,4 @@ class ActionController::IntegrationTest
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue