scala.tools.partest.StoreReporterDirectTest.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-partest Show documentation
Show all versions of scala-partest Show documentation
testing framework for the Scala compiler.
package scala.tools.partest
import scala.tools.nsc.Settings
import scala.tools.nsc.reporters.StoreReporter
import scala.collection.mutable
trait StoreReporterDirectTest extends DirectTest {
lazy val storeReporter: StoreReporter = new scala.tools.nsc.reporters.StoreReporter()
/** Discards all but the first message issued at a given position. */
def filteredInfos: Seq[storeReporter.Info] = storeReporter.infos.groupBy(_.pos).map(_._2.head).toList
/** Hook into [[scala.tools.partest.DirectTest]] to install the custom reporter */
override def reporter(settings: Settings) = storeReporter
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy