Displaying 1 result from an estimated 1 matches for "getting_started_with_autotest".
2009 Jul 08
7
running a unit test over and over in script/console
I started doing this:
$ RAILS_ENV=test script/console
>> load ''test/unit/models/example_test.rb''; r = Test::Unit::TestResult.new; reload!; ExampleTest.new(:test_example1).run(r) { |c,v| }; pp results
and then just hit up arrow and run that same line again over and over in
script/console. That way I can make changes to the test and app code,
and don''t have to