【问题标题】:SBT: Watch source and test source changes at the same timeSBT:同时观察源和测试源变化
【发布时间】:2018-01-29 19:28:24
【问题描述】:

我们可以让 SBT 监视像 sbt ~compile 这样的变化。但是,如果我们执行sbt ~compile,它不会监视测试源的更改。

我可以让它观看测试源sbt ~test:compile。但我想同时看。

我尝试了sbt ~compile ~test:compile,但这只会查看来源。它不看测试源。

【问题讨论】:

    标签: scala sbt


    【解决方案1】:

    sbt ~test:compile 应该监视(并编译)Compile-scope 源 (src/main/) 和 Test-scope 源 (src/test/)。后者在前者上是 depends

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-11
      • 1970-01-01
      • 1970-01-01
      • 2017-12-19
      相关资源
      最近更新 更多