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.



26
27
28
29
# File 'lib/flutter/minitest.rb', line 26

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

Instance Method Details

#reportObject



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

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