A high level view of Rspec tests
Test files in ruby/rspec can grow to gigantic soul crushing sizes, which makes it hard to really get a sense of what tests are in the file and where. This is troublesome when trying to determine a sensible place to add a new test to the already gigantic file.
To get a better sense of the structure of the file you can combine the dry-run
and format
options for readable, hierarchical documentation in a small amount of time.
rspec -fdoc --dry-run specs/my_massive_test_file_spec.rb
Tweet