I really like RSpec’s documentation format feature because it allows me to get a second opportunity to read what I am testing. It also allows me to see what I have missed. However, when you get to having over 100 tests and you run your entire suite, having: —format documentation in your .rspec file because very verbose and slows down the tests.
So, my very simple solution is to have my .rspec not set the format and then I have the following as a vim command:
This gives me a per file documentation output which is awesome.
Design by Simon Fletcher. Powered by Tumblr.
© Copyright 2010