|
Scala example source code file (SBTRunner.scala)
The Scala SBTRunner.scala source codepackage scala.tools.partest package nest import java.io.File import scala.tools.nsc.io.{ Directory } class SBTRunner extends DirectRunner { val fileManager = new FileManager { var JAVACMD: String = "java" var JAVAC_CMD: String = "javac" var CLASSPATH: String = _ var LATEST_LIB: String = _ val testRootPath: String = PathSettings.testRoot.path val testRootDir: Directory = PathSettings.testRoot } def reflectiveRunTestsForFiles(kindFiles: Array[File], kind: String):java.util.HashMap[String,Int] = { def convert(scalaM:scala.collection.immutable.Map[String,Int]):java.util.HashMap[String,Int] = { val javaM = new java.util.HashMap[String,Int]() for(elem <- scalaM) yield {javaM.put(elem._1,elem._2)} javaM } def failedOnlyIfRequired(files:List[File]):List[File]={ if (fileManager.failed) files filter (x => fileManager.logFileExists(x, kind)) else files } convert(runTestsForFiles(failedOnlyIfRequired(kindFiles.toList), kind)) } } Other Scala examples (source code examples)Here is a short list of links related to this Scala SBTRunner.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.