Skip to content

Instantly share code, notes, and snippets.

@alindeman
Created July 5, 2011 02:55
Show Gist options
  • Select an option

  • Save alindeman/1064183 to your computer and use it in GitHub Desktop.

Select an option

Save alindeman/1064183 to your computer and use it in GitHub Desktop.
# Run with:
# rspec --color -d spec --format CustomFormatter --require ./spec/support/custom_formatter.rb
require "rspec/core/formatters/documentation_formatter"
class CustomFormatter < RSpec::Core::Formatters::DocumentationFormatter
def example_group_started(example_group)
output.puts example_group.file_path if @group_level == 0
super(example_group)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment