Commit e6dc4f3a2fdb3ccb7e880825233d7b1dcf77dec9

Authored by Daniela Feitosa
1 parent 837c3706

Fixed task to run cucumber and selenium tasks

Cucumber and selenium tests from plugins weren't running:
I: no tests to run test:noosfero_plugins:cucumber
I: no tests to run test:noosfero_plugins:selenium
Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
lib/tasks/plugins_tests.rake
... ... @@ -31,7 +31,7 @@ def run_cucumber(name, profile, files_glob)
31 31 if files.empty?
32 32 puts "I: no tests to run #{name}"
33 33 else
34   - sh 'xvfb-run', 'ruby', '-S', 'cucumber', '--profile', profile, '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *files
  34 + sh 'xvfb-run', 'ruby', '-S', 'cucumber', '--profile', profile.to_s, '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *files
35 35 end
36 36 end
37 37  
... ... @@ -81,8 +81,8 @@ namespace :test do
81 81 plugin_test_task :units, plugin, "plugins/#{plugin}/test/unit/**/*.rb"
82 82 plugin_test_task :functionals, plugin, "plugins/#{plugin}/test/functional/**/*.rb"
83 83 plugin_test_task :integration, plugin, "plugins/#{plugin}/test/integration/**/*.rb"
84   - plugin_cucumber_task :cucumber, plugin, "plugins/#{plugin}/features/**/*.feature"
85   - plugin_selenium_task :selenium, plugin, "plugins/#{plugin}/features/**/*.feature"
  84 + plugin_cucumber_task :cucumber, plugin, "plugins/#{plugin}/test/features/**/*.feature"
  85 + plugin_selenium_task :selenium, plugin, "plugins/#{plugin}/test/features/**/*.feature"
86 86 end
87 87  
88 88 test_sequence_task(plugin, plugin, "#{plugin}:units", "#{plugin}:functionals", "#{plugin}:integration", "#{plugin}:cucumber", "#{plugin}:selenium")
... ... @@ -95,11 +95,11 @@ namespace :test do
95 95 end
96 96  
97 97 task :cucumber => 'db:test:plugins:prepare' do |t|
98   - run_cucumber t.name, :default, "plugins/{#{enabled_plugins.join(',')}}/features/**/*.features"
  98 + run_cucumber t.name, :default, "plugins/{#{enabled_plugins.join(',')}}/test/features/**/*.features"
99 99 end
100 100  
101 101 task :selenium => 'db:test:plugins:prepare' do |t|
102   - run_cucumber t.name, :selenium, "plugins/{#{enabled_plugins.join(',')}}/features/**/*.features"
  102 + run_cucumber t.name, :selenium, "plugins/{#{enabled_plugins.join(',')}}/test/features/**/*.features"
103 103 end
104 104  
105 105 task :temp_enable_all_plugins do
... ...