Sha256: d441c308e377328bf7a09e855a61705b0f81c6050431ac2d09afce6fc524dbb9

Contents?: true

Size: 712 Bytes

Versions: 14

Compression:

Stored size: 712 Bytes

Contents

require 'rake/testtask'
require 'rake/extensiontask'
require 'bundler/gem_tasks'

Rake::ExtensionTask.new('byebug')

SO_NAME = "byebug.so"

desc "Run MiniTest suite"
task :test do
  Rake::TestTask.new(:test) do |t|
    t.test_files = FileList["test/*_test.rb"]
    t.verbose = true
  end
end

base_spec = eval(File.read('byebug.gemspec'), binding, 'byebug.gemspec')

task :default => :test

desc 'Run a test in looped mode so that you can look for memory leaks'
task 'test_loop' do
  code = %Q[loop{ require '#{$*[1]}' }]
  cmd = %Q[ruby -Itest -e "#{ code }"]
  system cmd
end

desc 'Watch memory use of a looping test'
task 'test_loop_mem' do
  system "watch \"ps aux | grep -v 'sh -c r' | grep [I]test\""
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
byebug-2.1.1 Rakefile
byebug-2.1.0 Rakefile
byebug-2.0.0 Rakefile
byebug-1.8.2 Rakefile
byebug-1.8.1 Rakefile
byebug-1.8.0 Rakefile
byebug-1.7.0 Rakefile
byebug-1.6.1 Rakefile
byebug-1.6.0 Rakefile
byebug-1.5.0 Rakefile
byebug-1.4.2 Rakefile
byebug-1.4.1 Rakefile
byebug-1.4.0 Rakefile
byebug-1.3.1 Rakefile