Sha256: ad3a3f8de528a8afa4d48632e5fc62c4eaa2a6a056e55530028777f60abfb8a2

Contents?: true

Size: 1.31 KB

Versions: 39

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
import "test/benchmarks/benchmark.rake"
require "rubocop/rake_task"

RuboCop::RakeTask.new

task default: %i[test]

task 'test:all': %i[rubocop test forked_tests benchmarks:memory benchmarks]

task :test
require "rake/testtask"
Rake::TestTask.new(:test) do |test|
  test.libs << "lib" << "test"
  # exclude benchmark from the tests as the way it functions resets code coverage during executions
  # test.pattern = 'test/unit/*_test.rb'
  # using test files opposed to pattern as it outputs which files are run
  test.test_files = FileList["test/integration/**/*_test.rb", "test/coverband/**/*_test.rb"]
  test.verbose = true
end

Rake::TestTask.new(:forked_tests) do |test|
  if RUBY_PLATFORM == "java"
    puts "forked tests not supported on JRuby"
  else
    test.libs << "lib" << "test"
    test.test_files = FileList["test/forked/**/*_test.rb"]
    test.verbose = true
  end
end

desc "load irb with this gem"
task :console do
  puts "running console"
  exec "bundle console"
end

# This is really just for testing and development because without configuration
# Coverband can't do much
desc "start webserver"
task :server do
  exec "rackup -I lib"
end

desc "publish gem with 2 factor auth, reminder how"
task :publish_gem do
  exec "gem push pkg/coverband-4.2.3.XXX.gem"
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
coverband-6.0.2 Rakefile
coverband-6.0.1 Rakefile
coverband-6.0.1.rc.1 Rakefile
coverband-6.0.0 Rakefile
coverband-5.2.6.rc.6 Rakefile
coverband-5.2.3.2 Rakefile
coverband-5.2.6.rc.5 Rakefile
coverband-5.2.3.1 Rakefile
coverband-5.2.6.rc.4 Rakefile
coverband-5.2.6.rc.3 Rakefile
coverband-5.2.6.rc.2 Rakefile
coverband-5.2.6.rc.1 Rakefile
coverband-5.2.5 Rakefile
coverband-5.2.5.rc.3 Rakefile
coverband-5.2.5.rc.2 Rakefile
coverband-5.2.5.rc.1 Rakefile
coverband-5.2.4 Rakefile
coverband-5.2.3 Rakefile
coverband-5.2.2 Rakefile
coverband-5.2.1 Rakefile