Sha256: 11ef69aecc1d08ca4299f6e7ddf2a63eb723c6a45bd98d178e55e1d7ece40376
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
require 'cover_me' require 'ruby-debug' CoverMe.config do |c| # where is your project's root: c.project.root = File.expand_path("../lolita") # => "Rails.root" (default) # what files are you interested in coverage for: c.file_pattern = [ /(#{CoverMe.config.project.root}\/app\/.+\.rb)/i, /(#{CoverMe.config.project.root}\/lib\/.+\.rb)/i ] c.formatter = CoverMe::HtmlFormatter # what files do you want to explicitly exclude from coverage #c.exclude_file_patterns # => [] (default) # where do you want the HTML generated: #c.html_formatter.output_path # => File.join(CoverMe.config.project.root, 'coverage') (default) # what do you want to happen when it finishes: c.at_exit = Proc.new { if CoverMe.config.formatter == CoverMe::HtmlFormatter index = File.join(CoverMe.config.html_formatter.output_path, 'index.html') if File.exists?(index) `open #{index}` end end } end at_exit do CoverMe.complete! end
Version data entries
6 entries across 6 versions & 1 rubygems