```ruby
require 'minitap'

module Minitest

  ##
  # Base class for TapY and TapJ runners.
  #
  class Minitap

    attr_accessor :all_results

    def tapout_before_case(test_case)
      all_results << 'results123'
      Thread.current['all_results'] = all_results
      doc = {
          'type'    => 'case',
          'subtype' => '',
          'label'   => "#{test_case}",
          'level'   => 0
      }
      return doc
    end

  end

end
```

Clean up for rerun fix
user
```ruby
require 'minitap'

module Minitest

  ##
  # Base class for TapY and TapJ runners.
  #
  class Minitap

    def tapout_before_case(test_case)
      doc = {
          'type'    => 'case',
          'subtype' => '',
          'label'   => "#{test_case}",
          'level'   => 0
      }
      return doc
    end

  end

end
```
assistant