class ParallelTests::RuntimeLogger

def self.class_directory(suspect)

tweaking / post-processing to match correctly for any given project
Note: this is a best guess at conventional test directory structure, and may need
def self.class_directory(suspect)
  result = "test/"
  if defined?(Rails)
    result += case suspect.superclass.name
              when "ActionDispatch::IntegrationTest"
                "integration/"
              when "ActionDispatch::PerformanceTest"
                "performance/"
              when "ActionController::TestCase"
                "functional/"
              when "ActionView::TestCase"
                "unit/helpers/"
              else
                "unit/"
              end
  end
  result
end