Skip to content

Commit 7120d54

Browse files
committed
Added test cluster start/stop support into main Rakefile
1 parent d375c55 commit 7120d54

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Rakefile

+14
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ namespace :test do
7171
Rake::Task['ci:setup:minitest'].invoke
7272
end
7373
end
74+
75+
namespace :server do
76+
desc "Start Elasticsearch nodes for tests"
77+
task :start do
78+
require 'elasticsearch/extensions/test/cluster'
79+
Elasticsearch::Extensions::Test::Cluster.start
80+
end
81+
82+
desc "Stop Elasticsearch nodes for tests"
83+
task :stop do
84+
require 'elasticsearch/extensions/test/cluster'
85+
Elasticsearch::Extensions::Test::Cluster.stop
86+
end
87+
end
7488
end
7589

7690
desc "Generate documentation for all subprojects"

0 commit comments

Comments
 (0)