simplecov-badge icon indicating copy to clipboard operation
simplecov-badge copied to clipboard

Make output_path accessible via config

Open Uelb opened this issue 9 years ago • 2 comments

What about being able to change the output dir, indeed, the coverage dir is often ignored in the git tree of projects I think.

Uelb avatar Jan 26 '16 15:01 Uelb

This is how I deal with that right now. To put it in the spec folder.

SimpleCov.start do
  require 'simplecov-badge'
  require 'simplecov-json'
  class SimpleCov::Formatter::BadgeFormatter
    def output_path
      File.expand_path("../", __FILE__)
    end
  end
end

Uelb avatar Jan 26 '16 15:01 Uelb

I can work on this :)

radubogdan avatar Nov 28 '16 13:11 radubogdan