Skip to content

Instantly share code, notes, and snippets.

@choedl
choedl / gist:6634961
Last active December 23, 2015 12:19
Example build with setup and cleanup methods in sbt 0.13. Does not work correctly.
import sbt._
import Keys._
object TestBuild extends Build {
lazy val root = Project(id = "root", base = file(".")).aggregate(project1, project2)
lazy val project1 = Project("project1", file("project1"),
settings = defaultSettings ++ Seq(
libraryDependencies += "org.specs2" %% "specs2" % "2.1.1" % "test"
)
trait MongoTestPerSpecification extends SpecificationLike {
sequential
val mongodConfig = new MongodConfig(V2_4_3, 27018, false)
val artifactStorePath = new FixedPath("../mongodb")
val tempDir = new FixedPath(System.getProperty("java.io.tmpdir"))
val command = Command.MongoD
val processOutput = new ProcessOutput(new NullProcessor,
Processors.namedConsole("[MONGOD>]"), Processors.namedConsole("[console>]"))