Commit c7e5d2ae0237ca98153dc4857ea4cc5ba634d02d

Authored by Antonio Terceiro
Committed by Paulo Meireles
1 parent ccbced56

Run plugin acceptance tests together with the rest

Showing 1 changed file with 14 additions and 1 deletions   Show diff stats
lib/tasks/plugins_tests.rake
... ... @@ -69,8 +69,21 @@ namespace :test do
69 69 end
70 70 task :enabled => ['enabled:units', 'enabled:functionals', 'enabled:integration']
71 71  
  72 +
  73 + namespace :cucumber do
  74 + task :enabled do
  75 + features = Dir.glob('config/plugins/*/features/*.feature')
  76 + if features.empty?
  77 + puts "No acceptance tests for enabled plugins, skipping"
  78 + else
  79 + ruby '-S', 'cucumber', '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *features
  80 + end
  81 + end
  82 + end
  83 +
72 84 end
73 85  
74   - task :noosfero_plugins => 'noosfero_plugins:available'
  86 + task :noosfero_plugins => ['noosfero_plugins:available', 'noosfero_plugins:cucumber:enabled']
75 87  
76 88 end
  89 +
... ...