【问题标题】:sbt multi-module project: inter-dependency of integration testssbt 多模块项目:集成测试的相互依赖
【发布时间】:2015-08-24 03:50:39
【问题描述】:

我有一个多模块 sbt 项目,每个模块都有集成测试。模块 a 依赖于模块 b 用于编译、测试和集成测试范围。所以我在 Build.scala 中进行了这样的设置:

lazy val authorizationdeciderservice = Project(
  id = "a",
  base = file("modules/a"),
  configurations = Seq(IntegrationTest),
  dependencies = Seq(b % "compile;it->test;it")
)

现在compileit->test 依赖工作正常,但it 依赖却不行,因为我无法通过b 中的集成测试访问bit 路径上的资源@ .

可能是什么问题?

【问题讨论】:

  • 我也遇到了同样的问题:\

标签: scala sbt multi-module


【解决方案1】:

b % "compile;it->test;it"b % "compile->compile;it->test;it->compile" 相同。要从a中的集成测试访问b中it路径上的资源,应该有"it->it"

【讨论】:

    猜你喜欢
    • 2011-05-30
    • 1970-01-01
    • 2015-11-10
    • 2018-04-19
    • 2010-12-16
    • 2017-10-19
    • 2018-01-09
    • 2012-01-01
    相关资源
    最近更新 更多