How to run a task before running tests
1 answer
// build.sbt lazy val a = project.settings( testOptions in Test += Tests.Setup { _ => (runMain in Compile in b).toTask(" b.Main arg1 arg2").value } ) lazy val b = project
// b/src/main/scala/Main.scala package b object Main { def main(args: Array[String]): Unit = { println("hello " + args.mkString(" ")) } }
+4
source to share