The Test Filtering Extension is available from:
http://soxbox.no-ip.org/radiant/svn/extensions/test_filtering
Unless you’re developing extensions, avert your eyes now.
Basically, it provides a mechanism for extensions to
explicitely declare which tests they’re going to break.
This allows you to run the core tests with your extension
installed to make sure you didn’t break anything that
you didn’t mean to.
For example:
class AdminTreeStructureExtension < Radiant::Extension
breaks_tests ‘Admin::PageControllerTest’,
%w{test_index__with_cookie} if respond_to?(:breaks_tests)
end
Now, with admin_tree_structure installed, if I run rake test,
the test_index__with_cookie test gets skipped (in this case
because my extension changes the way the admin tree will
render)
(It’s a good idea to make the breaks_tests calls conditional
on the existence of the breaks_tests method so that your
extension doesn’t have a runtime dependency on this one).
Let the flood of well-tested extensions commence.
Dan.