简体   繁体   English

sbt多模块项目:集成测试的相互依赖性

[英]sbt multi-module project: inter-dependency of integration tests

I have a multi-module sbt project with integration tests for each module. 我有一个多模块sbt项目,每个模块都有集成测试。 Module a depends on module b for compile, test, and integration test scope. 模块a依赖于模块b进行编译,测试和集成测试。 So I have it setup like this in a Build.scala: 因此,我在Build.scala中进行了如下设置:

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

Now the compile and it->test dependency work fine, but the it dependecy does not, in that I am unable to access resources on the it path in b from integration tests in a . 现在, compileit->test依赖做工精细,但it dependecy不,在我是无法访问的资源上it路径b在集成测试a

Wha might the issue be? 可能是什么问题?

b % "compile;it->test;it" is the same as b % "compile->compile;it->test;it->compile" . b % "compile;it->test;it"b % "compile->compile;it->test;it->compile" To access resources on the it path in b from integration tests in a, there should be "it->it" . 要从a中的集成测试访问b中it路径上的资源,应该有"it->it"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM