Class: AlpacaBuildTool::ReportGenerator

Inherits:
Tool
  • Object
show all
Defined in:
lib/alpacabuildtool/tools/report_generator.rb

Overview

ReportGenerator provides access to ReportGenerator.exe tool

Instance Attribute Summary

Attributes included from Log

#log

Instance Method Summary collapse

Methods inherited from Tool

#call, #initialize

Constructor Details

This class inherits a constructor from AlpacaBuildTool::Tool

Instance Method Details

#convertObject

Convert OpenCover results


10
11
12
13
14
15
16
17
# File 'lib/alpacabuildtool/tools/report_generator.rb', line 10

def convert
  options = @configuration['options'] || {}
  unless File.exist? options['reports']
    return log.warn 'no coverage results found'
  end
  FileUtils.makedirs options['targetdir'] if options['targetdir']
  call([options])
end