Class: AlpacaBuildTool::OpenCover

Inherits:
Wrapper show all
Defined in:
lib/alpacabuildtool/tools/open_cover.rb

Overview

OpenCover provides access to OpenCover.exe tool

Instance Attribute Summary

Attributes included from Log

#log

Instance Method Summary collapse

Methods inherited from Wrapper

#initialize

Methods inherited from Tool

#initialize

Constructor Details

This class inherits a constructor from AlpacaBuildTool::Wrapper

Instance Method Details

#call(&block) ⇒ Object

Runs coverage by running inner tool

accepts &block for inner tool

coverage_tool = package_manager.get('OpenCover', test_tool)
coverage_tool.call do |tool|
  tool.test(project.file, debug)
end

17
18
19
20
21
# File 'lib/alpacabuildtool/tools/open_cover.rb', line 17

def call(&block)
  options = @configuration.fetch('options')
  FileUtils.makedirs File.dirname(options['output']) if options['output']
  super([options], &block)
end