Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails tasks are not being found #223

Closed
weedySeaDragon opened this issue Nov 12, 2021 · 3 comments
Closed

rails tasks are not being found #223

weedySeaDragon opened this issue Nov 12, 2021 · 3 comments

Comments

@weedySeaDragon
Copy link

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

  • Webdrivers version: 4.6.1, 4.7.0, 5.0.0
  • Ruby version: 2.6.6, 2.7.4
  • Operating system / CI Environment: macos 11.6
  • Browser and version: n/a

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
Copy link
Collaborator

@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
Copy link
Collaborator

Closing due to lack of response.

@zalom
Copy link

zalom commented Jan 11, 2024

@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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants