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?
Asked
Active
Viewed 196 times
1 Answers
1
I think you could try something like
(test in Test) <<= (test in Test) dependsOn (packageBin in Assets)

countingtoten
- 73
- 5

irundaia
- 1,720
- 17
- 25
-
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