Commit 85f6dccae771dc4144dd901a2f462639321647cd
1 parent
b03d4c32
Exists in
web_steps_improvements
and in
9 other branches
Set resolution for xvfb-run
This avoid unexpected failures with different environments defaults
Showing
3 changed files
with
5 additions
and
3 deletions
Show diff stats
lib/tasks/ci.rake
... | ... | @@ -57,7 +57,8 @@ namespace :ci do |
57 | 57 | |
58 | 58 | sh 'ruby', '-Itest', *tests unless tests.empty? |
59 | 59 | sh 'cucumber', *features unless features.empty? |
60 | - sh 'xvfb-run', '-a', 'cucumber', '-p', 'selenium', *features unless features.empty? | |
60 | + sh 'xvfb-run', '-a', '--server-args="-screen 0, 1280x1024x24"', | |
61 | + 'cucumber', '-p', 'selenium', *features unless features.empty? | |
61 | 62 | |
62 | 63 | changed_plugins.each do |plugin| |
63 | 64 | if $broken_plugins.include?(plugin) | ... | ... |
lib/tasks/plugins_tests.rake
... | ... | @@ -116,7 +116,8 @@ def run_minitest files |
116 | 116 | end |
117 | 117 | |
118 | 118 | def run_cucumber(profile, files) |
119 | - sh 'xvfb-run', '-a', 'ruby', '-S', 'cucumber', '--profile', profile.to_s, '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *files | |
119 | + sh 'xvfb-run', '-a', '--server-args="-screen 0, 1280x1024x24"', | |
120 | + 'ruby', '-S', 'cucumber', '--profile', profile.to_s, '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *files | |
120 | 121 | end |
121 | 122 | |
122 | 123 | def custom_run(name, files, run=:all) | ... | ... |
lib/tasks/selenium.rake
1 | 1 | desc 'Runs Seleniun acceptance tests' |
2 | 2 | task :selenium do |
3 | 3 | puts "Firefox version = #{`firefox --version`}" |
4 | - sh "xvfb-run -a cucumber -p selenium --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}" | |
4 | + sh "xvfb-run -a --server-args=\"-screen 0, 1280x1024x24\" cucumber -p selenium --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}" | |
5 | 5 | end | ... | ... |