0

I need a JavaScript file to exist before the tests are run. It is created using sbt-concat. How do I add the sbt-web asset pipeline as a dependency to running our spec tests?

1 Answers1

1

I think you could try something like

(test in Test) <<= (test in Test) dependsOn (packageBin in Assets)
irundaia
  • 1,640
  • 15
  • 24
  • Maybe? I get a type mismatch ```[error] found : sbt.TaskKey[Unit] [error] required: sbt.Task[Unit] => ? [error] (test in Test) <<= (test in Test) dependsOn (assets)``` – countingtoten Jan 26 '16 at 18:59
  • My bad, it should have been `test <<= test in Test dependsOn WebKeys.assets`. Will fix the answer – irundaia Jan 26 '16 at 19:14
  • That didn't work either. But it did point me towards this which worked ```(test in Test) <<= (test in Test) dependsOn (packageBin in Assets)``` – countingtoten Jan 26 '16 at 19:22