Class: AlpacaBuildTool::OpenCover
- Defined in:
- lib/alpacabuildtool/tools/open_cover.rb
Overview
OpenCover provides access to OpenCover.exe tool
Instance Attribute Summary
Attributes included from Log
Instance Method Summary collapse
-
#call(&block) ⇒ Object
Runs coverage by running inner tool.
Methods inherited from Wrapper
Methods inherited from Tool
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) = @configuration.fetch('options') FileUtils.makedirs File.dirname(['output']) if ['output'] super([], &block) end |