Applyed all necessary review improvements fix the gempath

update the test:plugins to test:all-plugins at it makes more sense

fix the path to run the bin logstash file

added order rand

Fixes #2373
This commit is contained in:
Pere Urbon-Bayes 2015-01-19 17:15:13 +01:00 committed by Jordan Sissel
parent ec97d3d78c
commit f3912f81db

View file

@ -16,9 +16,11 @@ namespace "test" do
RSpec::Core::Runner.run(["--fail-fast", *Rake::FileList["spec/**/*.rb"]])
end
task "plugins" => [ "bootstrap","plugin:install-all" ] do
pattern = "vendor/bundle/jruby/1.9/gems/logstash-*/spec/{input,filter,codec,output}s/*_spec.rb"
sh "./bin/logstash rspec #{pattern}"
task "all-plugins" => [ "bootstrap","plugin:install-all" ] do
require "logstash/environment"
gem_home = LogStash::Environment.logstash_gem_home
pattern = "#{gem_home}/logstash-*/spec/{input,filter,codec,output}s/*_spec.rb"
sh "#{LogStath::Environment::LOGSTASH_HOME}/bin/logstash rspec --order rand #{pattern}"
end
task "prep" do