Module: Minitest::Distributed::Filters::FilterInterface
- Extended by:
- T::Helpers, T::Sig
- Included in:
- ExcludeFileFilter, ExcludeFilter, IncludeFileFilter, IncludeFilter
- Defined in:
- lib/minitest/distributed/filters/filter_interface.rb
Overview
A filter proc is a callable object that changes the list of runnables that will be executed during the test run. For every runnable, it should return an array of runnables.
-
If it returns an empty array, the runnable will not be run.
-
If it returns a single element array with the passed ion runnable to make no changes.
-
It can return an array of enumerables to expand the number of runnables in this test run, We use this for grinding tests, for instance.
Instance Method Summary collapse
Instance Method Details
#call(runnable) ⇒ Object
21 |
# File 'lib/minitest/distributed/filters/filter_interface.rb', line 21 def call(runnable); end |