add a way to run all plugin test from a rake command

Fixes #2373
This commit is contained in:
Pere Urbon-Bayes 2015-01-12 14:44:04 +01:00 committed by Jordan Sissel
parent b0fefbbd71
commit ec97d3d78c
2 changed files with 6 additions and 1 deletions

View file

@ -21,7 +21,7 @@ namespace "plugin" do
Rake::Task["vendor:bundle"].invoke("tools/Gemfile.plugins.test")
end
task "install-all" do
task "install-all" => [ "dependency:octokit" ] do
Rake::Task["vendor:bundle"].invoke("tools/Gemfile.plugins.all")
end

View file

@ -16,6 +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}"
end
task "prep" do
Rake::Task["vendor:gems"].invoke(false)
Rake::Task["plugin:install-test"].invoke