Joined January 2017
·

ezzaf

·

Posted to Show number of examples in rspec over 1 year ago

RSpec formatters have changed, here's what I used in v3.5

require "rspec/core/formatters/base_formatter"
class DryRunFormatter < RSpec::Core::Formatters::BaseFormatter
    RSpec::Core::Formatters.register self, :example_started

    def start(example_count)
      output << "Running #{example_count.count} specs\n"
      exit(0)
    end
end
Achievements
1 Karma
0 Total ProTip Views