Sha256: fd0cf12039e9208b99d9f0cd34deba9cd6b12ee51f69083f5a603cd53292a41e

Contents?: true

Size: 1.62 KB

Versions: 25

Compression:

Stored size: 1.62 KB

Contents

require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
  t.verbose = false
  t.warning = false
  t.ruby_opts = []

  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList['test/**/*_test.rb']

  case File.basename(ENV['BUNDLE_GEMFILE']).split('.').first
  when /rails50/
    t.test_files = [ 'test/frameworks/rails/activerecord5_test.rb',
                     'test/frameworks/rails/actioncontroller_test.rb',
                     'test/frameworks/rails/actionview5_test.rb' ]
  when /rails42/
    t.test_files = [ 'test/frameworks/rails/activerecord4_test.rb',
                     'test/frameworks/rails/actioncontroller_test.rb',
                     'test/frameworks/rails/actionview4_test.rb' ]
  when /rails32/
    t.test_files = [ 'test/frameworks/rails/activerecord3_test.rb',
                     'test/frameworks/rails/actioncontroller_test.rb',
                     'test/frameworks/rails/actionview3_test.rb' ]
  when /libraries/
    t.test_files = FileList['test/instrumentation/*_test.rb',
                            'test/frameworks/cuba_test.rb',
                            'test/frameworks/roda_test.rb',
                            'test/frameworks/sinatra_test.rb']
  else
    t.test_files = FileList['test/agent/*_test.rb'] +
                   FileList['test/tracing/*_test.rb'] +
                   FileList['test/profiling/*_test.rb'] +
                   FileList['test/benchmarks/bench_*.rb']
  end
end

task :environment do
  ENV['INSTANA_GEM_DEV'] = 'true'
  Bundler.require(:default, :development)
end

task :console => :environment do
  ARGV.clear
  Pry.start
end

task :default => :spec

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
instana-1.9.5 Rakefile
instana-1.9.4 Rakefile
instana-1.9.3 Rakefile
instana-1.9.2 Rakefile
instana-1.9.1 Rakefile
instana-1.9.0 Rakefile
instana-1.9.0.daftrabbit Rakefile
instana-1.8.3 Rakefile
instana-1.9.0.sillyrabbit Rakefile
instana-1.8.2 Rakefile
instana-1.8.1 Rakefile
instana-1.8.0 Rakefile
instana-1.7.15 Rakefile
instana-1.7.14 Rakefile
instana-1.7.14a Rakefile
instana-1.7.13 Rakefile
instana-1.7.12 Rakefile
instana-1.7.11 Rakefile
instana-1.7.10 Rakefile
instana-1.7.9 Rakefile