From e0372eddc160678010c2b45be84a04af81ff63e5 Mon Sep 17 00:00:00 2001 From: Aleksandar Pokopec Date: Mon, 4 Oct 2010 14:05:35 +0000 Subject: Fixed a scalacheck test group "test entire subd... Fixed a scalacheck test group "test entire subdirectory" problem. It's now possible to add scalacheck tests consisting of multiple files. No review. --- src/partest/scala/tools/partest/PartestTask.scala | 5 ++++- src/partest/scala/tools/partest/nest/Worker.scala | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/partest/scala/tools/partest/PartestTask.scala b/src/partest/scala/tools/partest/PartestTask.scala index 55b4a2a637..7c7863f118 100644 --- a/src/partest/scala/tools/partest/PartestTask.scala +++ b/src/partest/scala/tools/partest/PartestTask.scala @@ -162,10 +162,13 @@ class PartestTask extends Task with CompilationPathProperty { case None => Array() case Some(fs) => def shouldExclude(name: String) = (name endsWith ".obj") || (name startsWith ".") + // println("----> " + fileSet) val fileTests = getFiles(Some(fs)) filterNot (x => shouldExclude(x.getName)) val dirTests: Iterator[SPath] = fileSetToDir(fs).dirs filterNot (x => shouldExclude(x.name)) val dirResult = dirTests.toList.toArray map (_.jfile) + // println("dirs: " + dirResult.toList) + // println("files: " + fileTests.toList) dirResult ++ fileTests } @@ -176,7 +179,7 @@ class PartestTask extends Task with CompilationPathProperty { private def getJvmFiles = getFilesAndDirs(jvmFiles) private def getResidentFiles = getFiles(residentFiles) private def getBuildManagerFiles = getFilesAndDirs(buildManagerFiles) - private def getScalacheckFiles = getFiles(scalacheckFiles) + private def getScalacheckFiles = getFilesAndDirs(scalacheckFiles) private def getScriptFiles = getFiles(scriptFiles) private def getShootoutFiles = getFiles(shootoutFiles) private def getScalapFiles = getFiles(scalapFiles) diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala index 51012de66c..57ab056cd6 100644 --- a/src/partest/scala/tools/partest/nest/Worker.scala +++ b/src/partest/scala/tools/partest/nest/Worker.scala @@ -69,7 +69,7 @@ class Worker(val fileManager: FileManager) extends Actor { def act() { react { case RunTests(kind, files) => - // NestUI.verbose("received "+files.length+" to test") + //NestUI.normal("received "+files.length+" to test") val master = sender runTests(kind, files) { results => master ! Results(results, createdLogFiles, createdOutputDirs) -- cgit v1.2.3