public
Description: Use autotest on your rails plugin development.
Homepage:
Clone URL: git://github.com/metaskills/autotest_railsplugin.git
name age message
file CHANGELOG Fri Sep 26 10:17:58 -0700 2008 Merge adzap's changes and update a few things. ... [metaskills]
file LICENSE Fri Sep 19 09:34:12 -0700 2008 Initial checking. [metaskills]
file README.rdoc Fri Sep 26 10:17:58 -0700 2008 Merge adzap's changes and update a few things. ... [metaskills]
file discover.rb Fri Sep 19 09:34:12 -0700 2008 Initial checking. [metaskills]
file railsplugin.rb Loading commit data...
file railsplugin_rspec.rb

Autotest::Railsplugin: Use autotest to develop your rails plugins!

This is a work in progress. To date the mappings for this autotest class are working very well for me. Please read the ‘railsplugin.rb’ file for details. The short story is that default autotest does not map well to rails test naming and this class addresses that. Works for test/unit and rspec.

INSTALLATION

  • From your plugin root run this

    git clone git://github.com/metaskills/autotest_railsplugin.git autotest

  • You can now use autotest.

    $ autotest

      loading autotest/railsplugin
    

CUSTOMISATION

If you need to customize the exceptions or mappings, create an .autotest file in the root of the plugin and place them in there. An example below of adding a custom exception

  Autotest.add_hook :initialize do |at|
    at.add_exception %r%^\./spec/dont_touch%
  end

HELPING OUT

If you find that this class is not doing what you think it should. Perhaps when you save a file it does not running the corresponding test and you want me to fix it, please do the following.

Email the directory structure of both the library file and the test file you expected it to run to ken *[at]* metaskills.net