Autowatchr is a project mainly written in Ruby, based on the MIT license.
Provides some autotest-like behavior for watchr
= autowatchr
Provides some autotest-like behavior for watchr (http://github.com/mynyml/watchr).
== Installation
gem install autowatchr --source http://gemcutter.org
== Current features
== Todo
== Example use
Create a .watchr file for your project and simply declare an Autowatchr block within it:
require 'autowatchr'
Autowatchr.new(self) do |config| config.ruby = 'jruby' config.lib_dir = 'leet_lib' config.test_dir = 'leet_test' end
Your tests can then be run with: $ watchr test/test.watchr
=== Configuration options
All of the config options are optional. You can also pass in a hash instead of a block. Also see: test.watchr[http://github.com/viking/autowatchr/blob/master/test.watchr].
== Using with RSpec
Autowatchr can easily be configured to work with the standard RSpec file hierarchy:
# spec/spec.watchr
require 'autowatchr'
Autowatchr.new(self) do |config|
config.test_dir = 'spec'
config.test_re = "^#{config.test_dir}/(.*)_spec.rb$"
config.test_file = '%s_spec.rb'
end
Be sure you have spec_helper.rb required in every spec file, or else put it in your .watchr file.
== Prettier Results
Autowatchr is compatible with the Watchr redgreen gem. Install 'mynyml-redgreen' and simply require it in your .watchr file.
== Copyright
Copyright (c) 2009 Jeremy Stephens. See LICENSE for details.
Many snippets were taken from ZenTest[http://github.com/seattlerb/ZenTest].