Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up multiple test folders in a SBT project

We'd like to set up our SBT project so that we have multiple test folders as opposed to one. So we'd like to see:

  • root
    • src
      • test
        • scala
          • unit
          • functional

How would we configure our SBT project file paths to do this?

like image 377
ChucK Avatar asked Jun 02 '11 09:06

ChucK


1 Answers

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")
like image 144
Vasil Remeniuk Avatar answered Oct 25 '22 20:10

Vasil Remeniuk