Rakefile in instana-1.1.0 vs Rakefile in instana-1.2.0
- old
+ new
@@ -7,9 +7,24 @@
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 = FileList['test/frameworks/rails/activerecord5_test.rb'] + FileList['test/frameworks/rails/actioncontroller_test.rb']
+ when /rails42/
+ t.test_files = FileList['test/frameworks/rails/activerecord4_test.rb'] + FileList['test/frameworks/rails/actioncontroller_test.rb']
+ when /rails32/
+ t.test_files = FileList['test/frameworks/rails/activerecord3_test.rb'] + FileList['test/frameworks/rails/actioncontroller_test.rb']
+ when /libraries/
+ t.test_files = FileList['test/instrumentation/*_test.rb']
+ else
+ t.test_files = FileList['test/agent/*_test.rb'] +
+ FileList['test/tracing/*_test.rb'] +
+ FileList['test/profiling/*_test.rb']
+ end
end
task :environment do
ENV['INSTANA_GEM_DEV'] = 'true'
Bundler.require(:default, :development)