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