title: How to list classpath for tests in Gradle
body: <p>When I try running <code>gradle test</code>, I get the following output:</p>
  
  <pre><code>$ gradle test
  :ro:compileJava UP-TO-DATE
  :ro:processResources UP-TO-DATE
  :ro:classes UP-TO-DATE
  :ro:jar
  :compileJava
  :processResources UP-TO-DATE
  :classes
  :compileTestJava UP-TO-DATE
  :processTestResources UP-TO-DATE
  :testClasses UP-TO-DATE
  :test
  
  ro.idea.ToggleTest &gt; testIsAd FAILED
      java.lang.NoClassDefFoundError at ToggleTest.java:13
          Caused by: java.lang.ClassNotFoundException at ToggleTest.java:13
  
  ro.idea.ToggleTest &gt; testToggle FAILED
      java.lang.NoClassDefFoundError at ToggleTest.java:13
  
  2 tests completed, 2 failed
  :test FAILED
  </code></pre>
  
  <p>So I want to check my classpath to see whether my classpath is wrong or not.</p>
  
  <p><strong>My question is:</strong> How can I list the classpath at <code>test</code> time with a Gradle task?</p>