We are the RSpec implementation of automated testing, but always want to open a dos shell look at the recent test results are also too cumbersome.
Well, let us to achieve automated testing automated prompts.
1. Installed gem
gem install diff-lcs gem install ruby-snarl
2. Download , Put the following three documents on the $ RUBY_HOME \ lib \ ruby \ gems \ 1.8 \ gems \ ZenTest-3.6.1 \ lib \ icons directory, $ RUBY_HOME are ruby installation directory. If there are no icons directory is set up.
* Accept.png
* Exclamation.png
* Information.png
3. New. Autotest file, reads as follows:
require 'win32console' require 'autotest/redgreen' #支持彩色输出 require 'autotest/snarl' #支持提醒
4. Modify spec / spec.opt,
--color --format specdoc --loadby mtime
- color # Supported color output
5. Download and install
6. In cmd into the RAILS_ROOT (your rails application home directory),
autospec
OK!







