5
In case you wonder how to run a functional lime test in a symfony plugin
1 Comment · Posted by Christian in Good to know
I just wrote two functional tests for the sfBulkUploadPlugin I introduced in yesterdays post.
I haven’t written functional tests in a while so it took me some time to remember what you have to do to be able to run them from within your plugins fixture project. In case you stumble about the same question here’s the answer.To be able to run your test with the symfony command i.e. $ php symfony test:functional test bulkUpload you have to connect the tests to your project. Otherwise you will be presented with this error.
>> functional no controller foundTo do connect the tests simply edit your fixture projects ProjectConfiguration.class.php.
The setupPlugins() method does the connection as you can see and it makes symfony expect tests in your plugin. So if you now run the above command symfony will also look into the test folder of your plugin and eventually run your test.
Functional Tests · lime · sfBulkUploadPlugin · symfony · Tests
<< [Question] From a business perspective: How do you chose to switch to a framework?


Pingback: Tweets that mention • In case you wonder how to run a functional lime test in a symfony plugin | test.ical.ly -- Topsy.com