From c7e5d2ae0237ca98153dc4857ea4cc5ba634d02d Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 10 Jan 2012 19:40:00 +0300 Subject: [PATCH] Run plugin acceptance tests together with the rest --- lib/tasks/plugins_tests.rake | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/tasks/plugins_tests.rake b/lib/tasks/plugins_tests.rake index 821f162..5760a1e 100644 --- a/lib/tasks/plugins_tests.rake +++ b/lib/tasks/plugins_tests.rake @@ -69,8 +69,21 @@ namespace :test do end task :enabled => ['enabled:units', 'enabled:functionals', 'enabled:integration'] + + namespace :cucumber do + task :enabled do + features = Dir.glob('config/plugins/*/features/*.feature') + if features.empty? + puts "No acceptance tests for enabled plugins, skipping" + else + ruby '-S', 'cucumber', '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *features + end + end + end + end - task :noosfero_plugins => 'noosfero_plugins:available' + task :noosfero_plugins => ['noosfero_plugins:available', 'noosfero_plugins:cucumber:enabled'] end + -- libgit2 0.21.2