All Downloads are FREE. Search and download functionalities are using the official Maven repository.

munit.internal.junitinterface.CustomRunners.scala Maven / Gradle / Ivy

The newest version!
package munit.internal.junitinterface

import sbt.testing.{Fingerprint, SubclassFingerprint}

class CustomRunners(val runners: List[CustomFingerprint]) {
  private val superclasses = runners.iterator.map(_.suite).toSet

  def matchesFingerprint(fingerprint: Fingerprint): Boolean =
    fingerprint match {
      case s: SubclassFingerprint => superclasses.contains(s.superclassName())
      case _                      => false
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy