Sha256: 68bb21284f116f84c8fddac16b81c299092457bc72e82cd34737d5f1e30e9176

Contents?: true

Size: 828 Bytes

Versions: 3

Compression:

Stored size: 828 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

3 entries across 3 versions & 1 rubygems

Version Path
albacore-0.0.9 spec/support/ncoverreporttestdata.rb
albacore-0.0.8 spec/support/ncoverreporttestdata.rb
albacore-0.0.7 spec/support/ncoverreporttestdata.rb