titusfortner / webdrivers

Keep your Selenium WebDrivers updated automatically
MIT License
592 stars 113 forks source link

rails tasks are not being found #223

Closed weedySeaDragon closed 2 years ago

weedySeaDragon commented 2 years ago

Summary

When I run bundle exec rails -T webdrivers no webdrivers tasks are listed. They're not listed even if I run bundle exec rails -T -A

It works (the tasks are found) if I add these lines into the Rakefile of my Rails project:

require 'webdrivers'
load 'webdrivers/Rakefile'

I found that suggestion in this old closed issue: #160

Debug Info

I found the problem exists with 2 of the projects I'm working on; I also tested with webdrivers 5.0.0

Rails versions 6.1.4.1, 5.2.6

Expected Behavior

All webdrivers tasks defined in the webdrivers gem webdrivers/lib/tasks/*.rake files should be listed.

Actual Behavior

no tasks are listed

kapoorlakshya commented 2 years ago

@weedySeaDragon Can you take a look at this StackOverflow post and see if that's what you're running into? The railtie support still exists here and should be working.

kapoorlakshya commented 2 years ago

Closing due to lack of response.

zalom commented 7 months ago

@weedySeaDragon Can you take a look at this StackOverflow post and see if that's what you're running into? The railtie support still exists here and should be working.

@kapoorlakshya, I had the same issue on Rails 7.0.5 and Ruby 3.1.2. Rake tasks were listed only when I do this ->

# test/test_helper.rb
require 'webdrivers'

and

# Rakefile
load 'webdrivers/Rakefile'