Commit b5579543b5b3ed5200029fb60d9a30d1427a7240

Authored by Antonio Terceiro + Paulo Meirelles
Committed by Paulo Meireles
1 parent d6aee5f1

also run plugins selenium tests

lib/tasks/plugins_tests.rake
... ... @@ -82,9 +82,20 @@ namespace :test do
82 82 end
83 83 end
84 84  
  85 + namespace :selenium do
  86 + task :enabled do
  87 + features = Dir.glob('config/plugins/*/features/*.feature')
  88 + if features.empty?
  89 + puts "No acceptance tests for enabled plugins, skipping"
  90 + else
  91 + sh 'xvfb-run', 'ruby', '-S', 'cucumber', '--profile', 'selenium', '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *features
  92 + end
  93 + end
  94 + end
  95 +
85 96 end
86 97  
87   - task :noosfero_plugins => ['noosfero_plugins:available', 'noosfero_plugins:cucumber:enabled']
  98 + task :noosfero_plugins => %w[ noosfero_plugins:available noosfero_plugins:cucumber:enabled noosfero_plugins:cucumber:enabled ]
88 99  
89 100 end
90 101  
... ...
plugins/mezuro/features/mezuro.feature
... ... @@ -59,3 +59,18 @@ Feature: mezuro content
59 59 And I press "Save"
60 60 Then I should see "Qt-Calculator"
61 61  
  62 +# @selenium
  63 +# Scenario: I delete a real mezuro content
  64 +# Given I am on My Community's cms
  65 +# And I follow "New content"
  66 +# And I follow "Kalibro project"
  67 +# And I fill in the following:
  68 +# | Title | Qt-Calculator |
  69 +# | License | GPL 2.0 |
  70 +# | Repository type | SUBVERSION |
  71 +# | Repository url | https://qt-calculator.svn.sourceforge.net/svnroot/qt-calculator |
  72 +# And I press "Save"
  73 +# And I follow "Qt-Calculator"
  74 +# And I follow "Destroy"
  75 +# And I press "Yes, I want."
  76 +# Then I should not see "Qt-Calculator"
... ...