Is there a way to run tests of the current opened file and get output in other window like vim-QuickRun does?
Right now I'm running tests by the command in command line:
/vagrant/my_project/app/Console/cake test app Console/Command/FeedParseShell
+++UPDATE+++
I'm calling cake
command in the project folder by absolute path, because I have several projects on my virtual machine. I'm still not aware how to make vim
to know where is the root folder of the project It's currently in.
And then I tell CakePHP console what command I want it to run by specifying the option test
and write the path to the test file.
It looks like this:
/vagrant/my_project/app/Console/cake test app Console/Command/FeedParseShell
(app
is not necessary - we can specify the absolute path to the test file without app
like:
/vagrant/my_project/app/Console/cake test /vagrant/my_project/app/Test/Case/Console/Command/FeedParseShell
)
Test files are locatedy in different folders. Here is the structure of Test/Case
folder:
Console Controller Lib Model View allTest.php
vim-rooter
plugin.