title: How to share test classes across Gradle projects?
body: <p>I am using Gradle to build and test my projects. I have two projects:</p>
  
  <pre><code>ProjA  contains      src\test\java\BaseTest.java       
  ProjB  contains      src\test\java\MyTest.java
  
  MyTest extends BaseTest
  </code></pre>
  
  <p>When I run <code>ProjB.gradle</code>, how do I get it to see the <code>BaseTest</code> class from ProjA?</p>
  
  <p>I tried adding:</p>
  
  <pre><code>dependencies {
    testCompile project('ProjA') 
  }
  </code></pre>
  
  <p>But it didn't work.</p>