Class: Flutter::Minitest::Reporter

Inherits:
Minitest::AbstractReporter
  • Object
show all
Defined in:
lib/flutter/minitest.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Reporter

Returns a new instance of Reporter.



28
29
30
31
# File 'lib/flutter/minitest.rb', line 28

def initialize(options)
  super()
  @verbose = options[:verbose]
end

Instance Method Details

#reportObject



33
34
35
36
37
38
39
40
41
# File 'lib/flutter/minitest.rb', line 33

def report
  return unless ::Flutter.enabled

  Flutter::Minitest.flutter_tracker.persist!
  $stdout.puts "Flutter filtered #{Flutter::Minitest.filtered} / #{Flutter::Minitest.total} tests"
  if @verbose
    $stdout.puts "Persisted flutter #{Flutter::Minitest.flutter_tracker}"
  end
end