答案 0 :(得分:5)
(sourceDirectories in Test) := Seq(new File("src/test/scala/unit"),
new File("src/test/scala/functional"))
SBT 0.7.x :
override def testSourceRoots = ("src" / "test") +++
"scala" +++ ("unit" / "functional")