Class: Binpacker::MinitestDiscovery
- Inherits:
-
TestDiscovery
- Object
- TestDiscovery
- Binpacker::MinitestDiscovery
- Defined in:
- lib/binpacker/test_discovery.rb
Instance Method Summary collapse
-
#enumerate ⇒ Object
For Minitest, we can’t easily enumerate test names without running them.
Methods inherited from TestDiscovery
Constructor Details
This class inherits a constructor from Binpacker::TestDiscovery
Instance Method Details
#enumerate ⇒ Object
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 |