Setting up multiple test folders in an SBT project

We would like to create our SBT project so that we have several test folders, and not one. Therefore, we would like to see:

  • root
    • CSI
      • test
        • scala
          • block
          • functional

How do we customize our SBT project file paths for this?

+8
scala sbt scalatest
source share
1 answer

SBT 0.9.x :

(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") 
+4
source share

All Articles