Tagging Your Test Cases 7
Here's a quick way to follow your tests a little more closely in your test.log.
In your test setup, add the following line:
def setup
RAILS_DEFAULT_LOGGER.debug "\n\e[0;31mRUNNING TEST CASE: #{name}\e[m\n"
end
When you run your tests, you will now see something similar to this.
alias_method :old_run, :run unless method_defined?(:old_run) def run(result, &progress_block) RAILS_DEFAULT_LOGGER.debug "\n\e[0;31mRUNNING TEST CASE: #{name}\e[m\n" old_run(result, &progress_block) endThere are surely better ways than this though. Would be great to hear if anyone has done this kind of TestCase extension work