diff options
| author | luu stiles <luuduong@gmail.com> | 2012-10-16 00:02:40 -0600 |
|---|---|---|
| committer | luu stiles <luuduong@gmail.com> | 2012-10-16 00:02:40 -0600 |
| commit | e7a1bb628ef077cb980c701d1d11ec84664ed939 (patch) | |
| tree | 54d80b00dc23fd12d826f6ec5223aae21bdf1dd2 /script | |
| parent | c2907d3c9c6ba14fd9b0e56285eb761a4bcf2955 (diff) | |
added simplecov to project for code coverage stats
Diffstat (limited to 'script')
| -rw-r--r-- | script/rails | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/script/rails b/script/rails index f8da2cff..280205a2 100644 --- a/script/rails +++ b/script/rails @@ -1,6 +1,14 @@ #!/usr/bin/env ruby # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. +# see all code executed by the rails server, and not just code executed in your actual test files, https://github.com/colszowka/simplecov +if ENV['RAILS_ENV'] == 'test' + require 'simplecov' + SimpleCov.start 'rails' + puts "required simplecov" +end + + APP_PATH = File.expand_path('../../config/application', __FILE__) require File.expand_path('../../config/boot', __FILE__) require 'rails/commands' |
