title: How to set unit test jvmargs using gradle kotlin dsl
body: <p>I'm trying to set jvmargs for unit tests using kotlin-dsl and I can't get it to work.</p>
  
  <p>This is so that I can add the "-noverify" argument and allow intellji test runner to collect code coverage info.</p>
  
  <p>Groovy, works:</p>
  
  <pre><code>testOptions {
          unitTests.all {
              jvmArgs '-noverify'
          }
      }
  </code></pre>
  
  <p>Kotlin, doesn't work:</p>
  
  <pre><code>testOptions {
          unitTests.all(KotlinClosure1&lt;Any, Test&gt;({
              (this as Test).also { jvmArgs("-noverify") }
          }, this))
      }
  </code></pre>
  
  <p>This too:</p>
  
  <pre><code>testOptions {
          unitTests.all(KotlinClosure1&lt;Any, Test&gt;({
              (this as Test).also { jvmArgs = listOf("-noverify") }
          }, this))
      }
  </code></pre>
  
  <p>Nothing seems to work, what am I missing?</p>