diff options
Diffstat (limited to 'contrib/playlib/test/src')
-rw-r--r-- | contrib/playlib/test/src/mill/playlib/PlayModuleTests.scala | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/contrib/playlib/test/src/mill/playlib/PlayModuleTests.scala b/contrib/playlib/test/src/mill/playlib/PlayModuleTests.scala index a04df0bc..398634ce 100644 --- a/contrib/playlib/test/src/mill/playlib/PlayModuleTests.scala +++ b/contrib/playlib/test/src/mill/playlib/PlayModuleTests.scala @@ -14,7 +14,7 @@ object PlayModuleTests extends TestSuite { override def twirlVersion = T{"1.4.0"} override def scalaVersion = T{"2.12.8"} object test extends PlayTests - + override def ivyDeps = T { super.ivyDeps() ++ Agg(ws())} } } @@ -59,6 +59,23 @@ object PlayModuleTests extends TestSuite { ) } } + 'dependencies - { + 'fromBuild - workspaceTest(playmulti) { eval => + val Right((deps, evalCount)) = eval.apply(playmulti.core.ivyDeps) + val expectedModules = Seq[String]( + "play", + "play-guice", + "play-server", + "play-logback", + "play-ahc-ws" + ) + val outputModules = deps.map(_.dep.module.name) + assert( + outputModules.forall(expectedModules.contains), + evalCount > 0 + ) + } + } 'compile - workspaceTest(playmulti) { eval => val eitherResult = eval.apply(playmulti.core.compile) val Right((result, evalCount)) = eitherResult |