Class: Bizside::CoverageLaunch

Inherits:
Object
  • Object
show all
Defined in:
lib/bizside/coverage/launch.rb

Class Method Summary collapse

Class Method Details

.loadObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/bizside/coverage/launch.rb', line 4

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_helperObject



15
16
17
18
19
20
# File 'lib/bizside/coverage/launch.rb', line 15

def self.load_from_test_helper
  if ENV["COVERAGE"] == 'true'
    setup()
    SimpleCov.start 'rails'
  end
end