Class: Binpacker::MinitestDiscovery

Inherits:
TestDiscovery show all
Defined in:
lib/binpacker/test_discovery.rb

Instance Method Summary collapse

Methods inherited from TestDiscovery

#initialize

Constructor Details

This class inherits a constructor from Binpacker::TestDiscovery

Instance Method Details

#enumerateObject

For Minitest, we can’t easily enumerate test names without running them. Instead, treat each file as a single test unit, with the file path as the name.



41
42
43
44
45
# File 'lib/binpacker/test_discovery.rb', line 41

def enumerate
  glob_files.map { |f|
    Test.new(file: f, name: f)
  }
end