Closed weedySeaDragon closed 2 years ago
Closing due to lack of response.
@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'
Summary
When I run
bundle exec rails -T webdrivers
no webdrivers tasks are listed. They're not listed even if I runbundle exec rails -T -A
It works (the tasks are found) if I add these lines into the
Rakefile
of my Rails project: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