rake command starts running testcases

51 Views Asked by At

when I run rake in console its started executing tested cases. How rake is loaded the test cases and execute them?

dev@ubuntu:~/Project/test_app (master)$ rake

then it started executing test cases.

2

There are 2 best solutions below

0
On BEST ANSWER

Seems that test is set to default Rake task: see the code on GinHub.

That's why > rake executes this default task.

0
On

By Default when you run Rake, it looks for a rakefile in the current directory (see How does `rake` know where to look for Rakefiles?)

Then unless you give it a task on the command line it executes the default task which @phts points on in the case of the Rakefile that comes with a default rails app is to run the tests.