0
在測試運行之前,我需要一個JavaScript文件來存在。它使用sbt-concat創建。如何將sbt-web資產管道添加爲運行我們的規範測試的依賴項?如何在測試運行之前執行sbt-web資產管道,特別是sbt-concat?
在測試運行之前,我需要一個JavaScript文件來存在。它使用sbt-concat創建。如何將sbt-web資產管道添加爲運行我們的規範測試的依賴項?如何在測試運行之前執行sbt-web資產管道,特別是sbt-concat?
我想你可以嘗試像
(test in Test) <<= (test in Test) dependsOn (packageBin in Assets)
也許?我得到一個類型不匹配 '''[error] found:sbt.TaskKey [單位] [錯誤] required:sbt.Task [Unit] =>? [error](Test in Test)<< =(test in Test)dependsOn(assets)''' – countingtoten
我的不好,應該是'test << = test in depends depends on WebKeys.assets'。將修復答案 – irundaia
這也沒有工作。但它確實指向了我工作的'''(Test in Test)<< =(Test in Test)dependsOn(package中的Assets)''' – countingtoten