for a bigger rails application I implemented the ability to load plugins. Of course I want to test those plugins, too.
For a cleaner directory structure I created test/plugins/ and in this file several test case files.
Is there a possibility to run those tests similar to test/unit and test/functional with rake test and rake test:plugins?
Greetings,
CK
You can create your own Rake task to test whatever you choose! In a
.rakefile underlib/tasks:Then you can run these tests using
rake test:my_custom_tests.If you want these tests to also run when you run your existing test task (i.e.
rake test), you can enhance that task. In a Rails app the task that actually does the heavy lifting istest:run(testitself does a few other things first, including setting up your test db)