Commit c7e5d2ae0237ca98153dc4857ea4cc5ba634d02d
Committed by
Paulo Meireles
1 parent
ccbced56
Exists in
master
and in
28 other branches
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,8 +69,21 @@ namespace :test do | ||
| 69 | end | 69 | end |
| 70 | task :enabled => ['enabled:units', 'enabled:functionals', 'enabled:integration'] | 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 | end | 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 | end | 88 | end |
| 89 | + |