jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 242 forks source link

[Headless chrome] Does not run any tests. Timesout #566

Open snehaso opened 5 years ago

snehaso commented 5 years ago

Teaspoon does not run any tests and just waits.

bundle exec rake teaspoon
/home/ubuntu/.gem/ruby/2.6.3/gems/hermod-2.4.0/lib/hermod/xml_section_builder.rb:35: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.
[7826] Sqreen logging at level 2 to /mnt/ramdisk/workspace/fac/freeagent/log/sqreen.log
Starting the Teaspoon server...
Teaspoon running default suite at http://127.0.0.1:43839/jasmine/default

It times out in the end. I'm using master as it has support for selenium options.

spec/teaspoon_env.rb

  config.driver = :selenium
  config.driver_options = {
   client_driver: :chrome,
   selenium_options: {
     options: Selenium::WebDriver::Chrome::Options.new(args: ['--headless', '--no-sandbox'])
   }
  }
aharpervc commented 5 years ago

Try the args without the -- prefix. Also, I had to add disable-gpu to my args list to get things to work, ymmv