title: How to enable debug on my JUnit through Gradle test task
body: <p>I get into trouble while I try to run my JUnit test through Gradle test task. While I run the test in eclipse directly with Run As -&gt; JUnit test, everything is ok, the test succeeds. But through test task, test always fails. Probably some trouble with the encoding of my resource txt file. So I would like to enable debug while I am launching the test with Gradle</p>
  <p>in build.gradle, my test task now looks like:</p>
  <pre><code>test {
      tasks.withType(Compile) {
          options.encoding = 'UTF-8'
      }
  }
  </code></pre>
  <p>So what should I do to enable debug? I run Gradle tasks from Gradle panel in Eclipse, not from the console. Thanks!</p>