Module: ASpaceCoverage

Defined in:
common/aspace_coverage.rb

Class Method Summary collapse

Class Method Details

.start(test_name, env = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'common/aspace_coverage.rb', line 8

def self.start(test_name, env = nil)
  SimpleCov.root(ASUtils.find_base_directory)
  SimpleCov.coverage_dir("coverage")
  SimpleCov.command_name test_name + ":#{Time.now.to_i}:#{$$}"
  SimpleCov.merge_timeout 3600

  SimpleCov.start(env) do
    add_filter "config/"
    add_filter "build/gems"
    add_filter "common/spec"
    add_filter "backend/spec"
    add_filter "backend/tests"
    add_filter "frontend/spec"
    add_filter "public/spec"
  end
end