title: IntelliJ won't show test overview when adding Gradle project property
body: <p>I have two IntelliJ Gradle run targets: One that simply executes the <code>test</code> task, and one that executes <code>test -PmyProperty=true</code>.</p>
  <p>When I run the first target, IntelliJ properly runs the tests and shows the results in the familar tree. But when I run the second one, the tests are executed, a JUnit report is generated, but IntelliJ doesn't show the test overview.</p>
  <p>If it matters, this is what Gradle does with the property:</p>
  <pre><code>test {
    useJUnit {
      if (project.properties[&quot;myProperty&quot;] != &quot;true&quot;) {
        excludeCategories(&quot;MyCategory&quot;)
      }
    }
  }
  </code></pre>
  <p>How do I get IntelliJ to show the test results as normal?</p>