forked from datastax/ruby-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
59 lines (44 loc) · 1.67 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# encoding: utf-8
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'rake/testtask'
require 'bundler/gem_tasks'
ENV['FAIL_FAST'] ||= 'Y'
RSpec::Core::RakeTask.new(rspec: :compile)
# We separate interactive from non-interactive features because jruby 9k sometimes has trouble
# closing its pipe to the child process in interactive features.
Cucumber::Rake::Task.new({cucumber_interactive: :compile}, 'Run cucumber features that are interactive') do |t|
t.profile = 'interactive'
end
Cucumber::Rake::Task.new({cucumber_noninteractive: :compile}, 'Run cucumber features that are non-interactive') do |t|
t.profile = 'non_interactive'
end
desc 'Run cucumber features'
task cucumber: [:cucumber_noninteractive, :cucumber_interactive]
desc 'Run all tests'
task test: [:rspec, :integration, :cucumber]
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
case ruby_engine
when 'jruby'
require 'rake/javaextensiontask'
Rake::JavaExtensionTask.new('cassandra_murmur3')
else
require 'rake/extensiontask'
Rake::ExtensionTask.new('cassandra_murmur3')
end
Rake::TestTask.new(integration: :compile) do |t|
t.libs.push 'lib'
t.test_files = FileList['integration/*_test.rb',
'integration/security/*_test.rb',
'integration/load_balancing/*_test.rb',
'integration/types/*_test.rb',
'integration/functions/*_test.rb',
'integration/indexes/*_test.rb']
t.verbose = true
end
Rake::TestTask.new(stress: :compile) do |t|
t.libs.push 'lib'
t.test_files = FileList['integration/stress_tests/*_test.rb']
t.verbose = true
end