-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I use the fuubar formatter.
I just wanted to show a hack to get the formatter to work with this gem:
In Reporter#add
, add the following hack:
...
@formatters << formatter_class.new(output)
if name == "Fuubar"
output = `bundle exec rspec --dry-run | grep 'examples, 0 failures'`
example_count = output.split(" ").first.to_i
delegate_to_formatters(:start, RSpec::Core::Notifications::StartNotification.new(example_count))
end
@formatters
...
This will send the required StartNotification
to fuubar.
Now we can run the specs with bundle exec turbo_tests -f Fuubar -r 'fuubar'
to get nicely formatted output.
ilyazub, Mayurifag and hartator
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request