Sha256: fbd550320fd16bb84f5d5baa43b94fc33505a21ae1443e5c8c52768dc78af254

Contents?: true

Size: 859 Bytes

Versions: 6

Compression:

Stored size: 859 Bytes

Contents

class NCoverReportTestData
  @filedir = File.dirname(__FILE__)
  @output_folder = File.expand_path(File.join(@filedir, "CodeCoverage", "report", "output"))
  
  def self.path_to_command
    File.expand_path(File.join(@filedir, "Tools", "NCover-v3.3", "NCover.Reporting.exe"))
  end
  
  def self.coverage_file
    File.expand_path(File.join(@filedir, "CodeCoverage", "report", "coverage.xml"))
  end
  
  def self.output_folder
    @output_folder
  end
  
  def self.clean_output_folder
    FileUtils.rmtree(@output_folder)
    Dir.mkdir(@output_folder) unless File.exist?(@output_folder)
    sleep(3) # this is a hack to work around the slow hard drive in my laptop, which caused failing tests w/ write-through-cache.
  end
  
  def self.summary_output_file
    File.join(NCoverReportTestData.output_folder, "summary.html")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
albacore-0.1.5 spec/support/ncoverreporttestdata.rb
albacore-0.1.4 spec/support/ncoverreporttestdata.rb
albacore-0.1.3 spec/support/ncoverreporttestdata.rb
albacore-0.1.2 spec/support/ncoverreporttestdata.rb
albacore-0.1.1 spec/support/ncoverreporttestdata.rb
albacore-0.1.0 spec/support/ncoverreporttestdata.rb