Rake - adding to the default task

I use a third-party stone that gives me the ability to run some tests using the rake command:

rake jasminerice:run 

Is it possible to include the task as part of the default rake task? (i.e. when I run rake , then rake jasminerice:run added to my other tests). This is required for CI integration.

Any help would be greatly appreciated!

+4
source share
1 answer

In Rake, tasks can have dependencies. You can usually do this:

 task :hello do puts "hello" end task :default => :hello 

For your specific problem, you can do this:

 task :default => "jasminerice:run" 
+6
source

All Articles