teaspoon icon indicating copy to clipboard operation
teaspoon copied to clipboard

[Headless chrome] Does not run any tests. Timesout

Open snehaso opened this issue 5 years ago • 1 comments

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'])
   }
  }

snehaso avatar Jul 16 '19 14:07 snehaso

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

aharpervc avatar Jul 17 '19 13:07 aharpervc