aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/Rakefile
blob: 39398aa19028928005546a5cde5d55de8ce3ff07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require "rake/testtask"
require "rspec/core/rake_task"

$LOAD_PATH.unshift(File.expand_path("#{ENV["HOMEBREW_REPOSITORY"]}/Library/Homebrew"))
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))

namespace :test do
  namespace :coverage do
    desc "Upload coverage to Codecov"
    task :upload do
      require "simplecov"
      require "codecov"
      formatter = SimpleCov::Formatter::Codecov.new
      formatter.format(SimpleCov::ResultMerger.merged_result)
    end
  end
end

desc "Open a REPL for debugging and experimentation"
task :console do
  require "pry"
  require "pry-byebug"
  require "hbc"
  ARGV.clear
  Hbc.pry
end