Class: Bizside::Coverage::Launch
- Inherits:
-
Object
- Object
- Bizside::Coverage::Launch
- Defined in:
- lib/bizside/coverage/launch.rb
Class Method Summary collapse
Class Method Details
.load ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/bizside/coverage/launch.rb', line 5 def self.load if ENV["COVERAGE"].to_s.downcase == 'true' and ENV['ACCEPTANCE_TEST'].to_s.downcase == 'true' setup() SimpleCov.start 'rails' do SimpleCov.command_name(ENV['COMMAND_NAME']) if ENV['COMMAND_NAME'] SimpleCov.merge_timeout(7200) end end end |
.load_from_test_helper ⇒ Object
16 17 18 19 20 21 |
# File 'lib/bizside/coverage/launch.rb', line 16 def self.load_from_test_helper if ENV["COVERAGE"] == 'true' setup() SimpleCov.start 'rails' end end |