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

Rake tasks test fail, because it's not finding any #791

Open
alain-andre opened this issue Dec 2, 2020 · 2 comments
Open

Rake tasks test fail, because it's not finding any #791

alain-andre opened this issue Dec 2, 2020 · 2 comments

Comments

@alain-andre
Copy link

alain-andre commented Dec 2, 2020

I have rake tasks tests like user subscription that used to work. I'm trying parallel_tests and having this message for all my tasks, any idea how I could fix this ?

Minitest::UnexpectedError:         RuntimeError: Don't know how to build task 'subscription:delete' (See the list of available tasks with `rake --tasks`)

The tasks have nothing special :

# lib/tasks/subscription.rake
namespace :subscription do

  desc 'Subscription manager'
  task :delete, [:params] => :environment do |_task, args|
    # ...
  end
end
@grosser
Copy link
Owner

grosser commented Dec 28, 2020

Minitest::UnexpectedError seems like somehow the test framework got loaded
best try to run with --trace to get a full backtrace and then see who loads what and then go into these places to see what went wrong

@alain-andre
Copy link
Author

sorry @grosser I missed the email. I'll give a try soon and comme back with traces.

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

2 participants