简体   繁体   中英

sbt multi-module project: inter-dependency of integration tests

I have a multi-module sbt project with integration tests for each module. Module a depends on module b for compile, test, and integration test scope. So I have it setup like this in a 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 .

Wha might the issue be?

b % "compile;it->test;it" is the same as 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" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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