@@ -32,10 +32,10 @@ namespace :test do
3232 end
3333
3434 desc 'Run unit tests'
35- task unit : :spec
36- RSpec ::Core ::RakeTask . new ( :spec ) do |t |
37- t . pattern = 'spec/elasticsearch/api /**/*_spec.rb'
38- t . exclude_pattern = 'spec/platinum/**/*_spec.rb '
35+ task :unit
36+ RSpec ::Core ::RakeTask . new ( :unit ) do |t |
37+ t . pattern = 'spec/unit /**/*_spec.rb'
38+ t . ruby_opts = '-W0 '
3939 end
4040
4141 desc 'Run Elasticsearch test suite free tests.'
@@ -55,30 +55,18 @@ namespace :test do
5555 ruby './spec/yaml-test-runner/run.rb'
5656 end
5757
58+ desc 'Run Integration tests'
59+ RSpec ::Core ::RakeTask . new ( :integration ) do |t |
60+ t . pattern = 'spec/integration/**/*_spec.rb'
61+ t . ruby_opts = '-W0'
62+ end
63+
5864 namespace :platinum do
5965 desc 'Run Platinum Rest API Spec tests'
6066 RSpec ::Core ::RakeTask . new ( :api ) do
6167 ENV [ 'TEST_SUITE' ] = 'platinum'
6268 Rake ::Task [ 'test:rest_api' ] . invoke
6369 end
64-
65- desc 'Run Platinum Unit tests - DEPRECATED: Will be migrated to RSpec'
66- Rake ::TestTask . new ( :unit ) do |test |
67- test . libs << 'spec/platinum/unit'
68- test . test_files = FileList [ 'spec/platinum/unit/**/*_test.rb' ]
69- test . verbose = false
70- test . warning = false
71- end
72-
73- desc 'Run Platinum Integration Specs'
74- RSpec ::Core ::RakeTask . new ( :integration ) do |t |
75- t . pattern = if ENV [ 'TEST_SUITE' ] == 'platinum'
76- 'spec/platinum/integration/**/*_spec.rb'
77- else
78- 'spec/free/integration/**/*_spec.rb'
79- end
80- t . ruby_opts = '-W0'
81- end
8270 end
8371end
8472
0 commit comments