Class: JsCoverage

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks/jasmine_node_coverage/js_coverage.rb

Instance Method Summary collapse

Constructor Details

#initialize(jscoverage) ⇒ JsCoverage


3
4
5
# File 'lib/tasks/jasmine_node_coverage/js_coverage.rb', line 3

def initialize(jscoverage)
  @jscoverage = jscoverage
end

Instance Method Details

#run(source_dir, coverage_dir) ⇒ Object


7
8
9
# File 'lib/tasks/jasmine_node_coverage/js_coverage.rb', line 7

def run(source_dir, coverage_dir)
  return `"#{@jscoverage}" "#{source_dir}" "#{coverage_dir}"  2>&1`
end