title: How to run unit test in a multi-module play project written in Java
body: <p>So I have the following project structure with a play project, which is written in Java:</p>
  
  <pre><code>conf\
  modules\
      first\
          app\
          test\
      second\
          app\
          test\ 
  build.sbt
  </code></pre>
  
  <p>in my build.sbt I have the following</p>
  
  <pre class="lang-scala prettyprint-override"><code>
  lazy val first= project.in(file("modules/first"))
    .enablePlugins(PlayMinimalJava)
  
  lazy val first= project.in(file("modules/second"))
    .enablePlugins(PlayMinimalJava)
  
  lazy val whole = project.in(file("."))
    .enablePlugins(PlayMinimalJava)
    .dependsOn(first, second)
  </code></pre>
  
  <p>Now, I would like to run the JUnit tests located in each subproject. When I put them at the root in <code>test/</code>, they run if I do <code>sbt test</code>. But if move them into the subprojects test directory -at <code>modules/first/test/</code> and <code>modules/second/test/</code>- they do not run.</p>
  
  <p>What would be missing so my tests can run?</p>