![](/img/trans.png)
[英]sbt doesn't correctly deal with resources in multi-module projects when running integration tests. Why?
[英]sbt multi-module project: inter-dependency of integration tests
我有一个多模块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")
)
现在, compile
和it->test
依赖做工精细,但it
dependecy不,在我是无法访问的资源上it
路径b
在集成测试a
。
可能是什么问题?
b % "compile;it->test;it"
与b % "compile->compile;it->test;it->compile"
。 要从a中的集成测试访问b中it路径上的资源,应该有"it->it"
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.