Module: Flutter::Minitest::Hooks::ClassMethods

Included in:
Minitest::Test
Defined in:
lib/flutter/minitest.rb

Instance Method Summary collapse

Instance Method Details

#runnable_methodsObject



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/flutter/minitest.rb', line 47

def runnable_methods
  return super unless ::Flutter.enabled

  Flutter::Minitest.filtered ||= 0
  Flutter::Minitest.total ||= 0
  default = super()
  Flutter::Minitest.total += default.length
  default.select do |test|
    !Minitest.flutter_tracker.skip?(
      "#{name}##{test}",
      File.absolute_path(instance_method(test).source_location[0]),
      instance_method(test).source,
    ).tap { |skip| Flutter::Minitest.filtered += 1 if skip }
  end
end