mirror of
https://github.com/internetee/registry.git
synced 2025-08-13 13:09:32 +02:00
Generate code coverage report when running tests
This commit is contained in:
parent
3ae418b360
commit
3759e8179b
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
if ENV['COVERAGE']
|
||||||
|
require 'simplecov'
|
||||||
|
SimpleCov.start
|
||||||
|
end
|
||||||
|
|
||||||
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'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue